|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
to put msg into remote def queue using java program |
« View previous topic :: View next topic » |
Author |
Message
|
limothy |
Posted: Wed Jan 16, 2002 2:59 am Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Wed Jan 16, 2002 8:41 pm Post subject: |
|
|
 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 |
|
 |
limothy |
Posted: Wed Jan 16, 2002 9:23 pm Post subject: |
|
|
Newbie
Joined: 15 Jan 2002 Posts: 4
|
|
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
|
|
|
|