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 » to put msg into remote def queue using java program

Post new topic  Reply to topic
 to put msg into remote def queue using java program « View previous topic :: View next topic » 
Author Message
limothy
PostPosted: Wed Jan 16, 2002 2:59 am    Post subject: Reply with quote

Newbie

Joined: 15 Jan 2002
Posts: 4


Hi, can anyone please enlighten me.. I don't seem to be able to put message into a remote definition queue. Below is my code:

// start code
int openOptions = MQC.MQOO_INPUT_AS_Q_DEF |
MQC.MQOO_OUTPUT ;
String queueName = "A.R";
MQQueue qToOpen = qMgr.accessQueu(queueName,
openOptions,null,null,null);
// end code

The error message is:
MQJE001: Completion Code 2, Reason 2045
An MQ error occurred : Completion code 2 Reason code 2045

This situation doesn't happen for normal local queue.. am I missing something here?? TIA!
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolban
PostPosted: Wed Jan 16, 2002 8:41 pm    Post subject: Reply with quote

Grand Master

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

You can't open a remote queue definition for input. You must only open it for output. Remove the MQC.MQOO_INPUT_AS_Q_DEF.

[ This Message was edited by: kolban on 2002-01-16 20:42 ]
Back to top
View user's profile Send private message
limothy
PostPosted: Wed Jan 16, 2002 9:23 pm    Post subject: Reply with quote

Newbie

Joined: 15 Jan 2002
Posts: 4

thanks very much!
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » to put msg into remote def queue using java program
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.