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 » General IBM MQ Support » REMOTE QUEUE ACCESS FROM JAVA

Post new topic  Reply to topic
 REMOTE QUEUE ACCESS FROM JAVA « View previous topic :: View next topic » 
Author Message
kishankumar.v
PostPosted: Sun Dec 09, 2001 4:59 am    Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2001
Posts: 47

Hi,
When I try MQQUEMANAGER.accessQueue to connect to a remote queue connection (JAVA API from com.ibm.mq.*) it is giving error. When connected to tranmission queue or local queue there is no problem..But I want message to goto a remote queue from a java program. So when I try accessQueue(remoteQueueDef queue) .. It is not working..How to go about sending messages to remote queue from Java.

Thanks,
V. Kishan Kumar
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Sun Dec 09, 2001 1:03 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

Can you elaborate on the remote queue? Is this a "QREMOTE" definition on the queue manager? What are the details of the error your encounter? I am presuming an MQException is being thrown, can you post the complete details of this exception?
Back to top
View user's profile Send private message
kishankumar.v
PostPosted: Sun Dec 09, 2001 11:21 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2001
Posts: 47

Hi,

MQQueue queue = mqmgr.accessQueue("TESTQ",openOptions,"QMGRKISH",null,null);

If I change this queue name to the remote queue name and then run Iam getting the following error...

Unable to load message catalog - mqji
Exception in thread "main" com.ibm.mq.MQException: Completion Code 2, Reason 204
5
at com.ibm.mq.MQQueueManager.accessQueue(MQQueueManager.java:1033)
at mqtrans.main(mqtrans.java:34)

At accessQueue it is giving error..when i change the queuename to local physical queue name it is able to put message..but I want to transfer message to another queue manager in another machine..for which I have to connect to the remote queue definition which containts info about target queue manager and target queue name.

Thanks,
V. Kishan Kumar
Back to top
View user's profile Send private message Send e-mail
kishankumar.v
PostPosted: Sun Dec 09, 2001 11:23 pm    Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2001
Posts: 47

Hi,
By remote queue definition .. Yes I mean the qremote only...But Iam doing this from the mqseries explorer..where there is a GUI for creating a remote queue definition for a local queue manager.
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Sun Dec 09, 2001 11:37 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3252
Location: London, ON Canada

Hi,

The reason code of 2045 is defined as MQRC_OPTION_NOT_VALID_FOR_TYPE.

Therefore, you have a problem with your openOptions. Trying setting the openOptions to only MQOO_OUTPUT.

later
Roger...
http://www.geocities.com/capitalware/mqseries.html
Back to top
View user's profile Send private message Visit poster's website
kishankumar.v
PostPosted: Mon Dec 10, 2001 2:28 am    Post subject: Reply with quote

Apprentice

Joined: 26 Nov 2001
Posts: 47

Hi,
Thanks very much. Now it is working fine..Other thing I wanted to ask where do I get information about the error codes...??

Thanks,
V. Kishan Kumar
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Mon Dec 10, 2001 7:44 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

All IBM MQ manuals may be read/downloaded from http://www-4.ibm.com/software/ts/mqseries/library/manualsa/.

The manual that will give you the messages and codes is:

MQSeries Messages
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » REMOTE QUEUE ACCESS FROM JAVA
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.