Author |
Message
|
Rani.chitti |
Posted: Mon Aug 03, 2009 9:20 am Post subject: Can't connect MQ with EJB - MQ 2085 |
|
|
Newbie
Joined: 31 Jul 2009 Posts: 8
|
Hi,
I am not able to access MQ through MDB.I get the following exception when i deploy my MDB
Quote: |
<Warning> <EJB> <BEA-010061> <The Message-Driven EJB: TestMDB is unable to connect to the JMS destination: jms/WLReceiverQueue.
The Error was:
javax.jms.InvalidDestinationException: MQJMS2008: failed to open MQ queue
Linked exception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2085> |
I followed the example from Bea example found on web
see also http://ibswings.blogspot.com/2008/02/integrating-mq-broker-6-with-bea.html
I checked the following by searching in this forum
1) Made sure that my QM is running
2)Restarted the QM
3)was able to put messages through MQ Explorer
4)Made sure the listener is running(not sure if we need this for file based JNDI)
5) Made sure i have the right Names for Qm,Queue.
Could any one point me what would the reason?
Thanks
[edited by admin for better readability] changed link to show text and not the raw link[/edit] |
|
Back to top |
|
 |
Vitor |
Posted: Mon Aug 03, 2009 9:31 am Post subject: Re: Can't connect MQ with EJB - MQ 2085 |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Rani.chitti wrote: |
5) Made sure i have the right Names for Qm,Queue.
|
If you look up 2085 you'll see it's "object not found" - typically the queue name.
Ensure the queue name is correct, remembering that WMQ is case sensitive _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Rani.chitti |
Posted: Mon Aug 03, 2009 10:29 am Post subject: |
|
|
Newbie
Joined: 31 Jul 2009 Posts: 8
|
Thanks Vitor.
I double checked the case sensitive after your reply and i had the same issue.So,in order to overcome this,i deleted and created a new set.And now i have the following exception
Quote: |
9 2:21:35 PM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: TestMDB is unable to connect to the JMS destination: jms/WLReceiverQueue. The Error was:
Can not get distribute destination information. The destination JNDI name is jms/WLReceiverQueue, the provider URL is null> |
I am assuming the provider URL has to be the location of the binding file say : file/C:/JNDI_DIRECTORY. and initial context as com.sun.jndi.fscontext.RefFSContextFactory
And i see my messages sitting on the Queue.
Please shed some limelight.
Thanks |
|
Back to top |
|
 |
anilit99 |
Posted: Mon Aug 03, 2009 1:40 pm Post subject: |
|
|
 Voyager
Joined: 28 May 2009 Posts: 75 Location: London, UK
|
I've never used file base jndi. But I think we have a special syntax for the provider url, which goes like
Code: |
file:///C:/JNDI_DIRECTORY |
_________________ "I almost care !" |
|
Back to top |
|
 |
Rani.chitti |
Posted: Wed Aug 05, 2009 10:24 am Post subject: |
|
|
Newbie
Joined: 31 Jul 2009 Posts: 8
|
Hi Thanks for your reply.
I did try the
Code: |
file:///C:/JNDI_DIRECTORY |
But i get the same error.If not the file based what are the other options we have?
I also tried <IPaddress>:<listener>/<ChannelName>.
Ex:localhost:1414/SYSTEM.DEF.SVRCONN
But i get the same exception.Can anyone point to the right direction.
Thanks |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Aug 06, 2009 7:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
if you get a 2085 you did connect to the qmgr. You have probably a misspelled qname or the case does not match...
Note that the qname would have been misspelled in the JNDI setup  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Rani.chitti |
Posted: Thu Aug 06, 2009 10:29 am Post subject: |
|
|
Newbie
Joined: 31 Jul 2009 Posts: 8
|
I no longer get the 2085 exception.
I get the following
Quote: |
9 2:21:35 PM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: TestMDB is unable to connect to the JMS destination: jms/WLReceiverQueue. The Error was:
Can not get distribute destination information. The destination JNDI name is jms/WLReceiverQueue, the provider URL is null> |
I am not sure what i am missing,as i have checked all my configuration with the example i based upon. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Aug 07, 2009 3:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Rani.chitti wrote: |
I no longer get the 2085 exception.
I get the following
Quote: |
9 2:21:35 PM EDT> <Warning> <EJB> <BEA-010061> <The Message-Driven EJB: TestMDB is unable to connect to the JMS destination: jms/WLReceiverQueue.
The Error was:
Can not get distribute destination information. The destination JNDI name is jms/WLReceiverQueue, the provider URL is null> |
I am not sure what i am missing,as i have checked all my configuration with the example i based upon. |
Quite clear. Something is wrong with your BEA JNDI setup for the destination:
Quote: |
the provider URL is null |
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
|