|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Qmgr connection with JMS |
« View previous topic :: View next topic » |
Author |
Message
|
dp111443 |
Posted: Fri Jun 25, 2004 6:22 am Post subject: Qmgr connection with JMS |
|
|
Voyager
Joined: 25 Feb 2004 Posts: 82
|
Hi,
I'm no java expert however we are having the following problem:
Cannot connect to Remote MQ queues using the JMS adaptors in java. The following error is encountered.
Failed to connect to JMS javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'localhost:GBAHE06D'
However, when the queue is defined as a local queue then it works.
Any idea's why?
regards
Dharmesh _________________ Integration Design/Developer
IBM Certified System Administrator -
WebSphere MQ V5.3 |
|
Back to top |
|
 |
bower5932 |
Posted: Fri Jun 25, 2004 8:18 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
You said queue, but I think that you meant queue manager. I'm guessing that when you defined your QCF, you didn't fill in all of the appropriate fields. If you are trying to connect to a queue manager on another box, you'll need to specify a transport of client, hostname, port, channel. You'll also have to verify that you have a listener running on the qmgr box. |
|
Back to top |
|
 |
EddieA |
Posted: Fri Jun 25, 2004 8:30 am Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
You also need to print out the "linked exception" to get the underlying MQ error code.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
dp111443 |
Posted: Mon Jun 28, 2004 1:22 am Post subject: |
|
|
Voyager
Joined: 25 Feb 2004 Posts: 82
|
I may have not explained the problem correctly.
The JMS application can connect to the Queue Manager GBAHE06D successfully and put messages to a local queue (say GBAHE06D.QUEUE)
however, when we delete the same local queue and create a queue that is a remote definition called the same thing (GBAHE06D.LOCAL.QUEUE) we get the error in the above post.
Does the Java code need to do something different when the queue they are trying to put to is a remote definition? or should it work in the same way as putting to a local queue?
I'll send the JMS apps people the info you have sent me so far as it seems useful.
Many thanks,
Dharmesh _________________ Integration Design/Developer
IBM Certified System Administrator -
WebSphere MQ V5.3 |
|
Back to top |
|
 |
rupesh_hp |
Posted: Mon Jun 28, 2004 1:43 am Post subject: |
|
|
Novice
Joined: 25 Jun 2004 Posts: 11 Location: Bangalore,India
|
you need to have channels for the same. if you want to write on a local queue residing on the other machine.Also the QCF should be defined for that machine say
with parameters as host,port,transport.
Hope this helps you
Rgds,
Rupesh |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|