ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Qmgr connection with JMS

Post new topic  Reply to topic
 Qmgr connection with JMS « View previous topic :: View next topic » 
Author Message
dp111443
PostPosted: Fri Jun 25, 2004 6:22 am    Post subject: Qmgr connection with JMS Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Fri Jun 25, 2004 8:18 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
EddieA
PostPosted: Fri Jun 25, 2004 8:30 am    Post subject: Reply with quote

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
View user's profile Send private message
dp111443
PostPosted: Mon Jun 28, 2004 1:22 am    Post subject: Reply with quote

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
View user's profile Send private message
rupesh_hp
PostPosted: Mon Jun 28, 2004 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Qmgr connection with JMS
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.