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 API Support » Can not write message to SYSTEM.COMMAND.INPUT queue

Post new topic  Reply to topic
 Can not write message to SYSTEM.COMMAND.INPUT queue « View previous topic :: View next topic » 
Author Message
brandoh
PostPosted: Wed Oct 18, 2006 11:42 am    Post subject: Can not write message to SYSTEM.COMMAND.INPUT queue Reply with quote

Newbie

Joined: 18 Oct 2006
Posts: 8

Since the MS0B support pac does not support MQ6 on ZOS yet, I am trying to write a java program to put a command on the SYSTEM.COMMAND.INPUT queue and read the response off of the ReplyToQueue I specify.

I am getting a 2042 Object in Use during the accessQueue method. I have set the open options to MQC.MQOO_INPUT_SHARED | MQC.MQOO_OUTPUT.

When I look in the ISPF panels, there is an open input count on the queue. How do I get around this? Do the ISPF panels (CSQOREXX) put messages on that queue in exclusive mode?

Any help would be appreciated!

Brando
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Oct 18, 2006 11:51 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You shouldn't need to open that queue for INPUT at all, just for OUTPUT.

You're going to put a message on the queue, and the command server is going to read that message and put a reply message on the ReplyTo queue in that message.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
brandoh
PostPosted: Wed Oct 18, 2006 12:05 pm    Post subject: Reply with quote

Newbie

Joined: 18 Oct 2006
Posts: 8

That seems to work, thanks for the info.
Back to top
View user's profile Send private message
brandoh
PostPosted: Fri Oct 20, 2006 3:57 am    Post subject: Reply with quote

Newbie

Joined: 18 Oct 2006
Posts: 8

This is my message set up

MQMessage msg = new MQMessage();
msg.replyToQueueName = replyQName;
msg.messageType = MQC.MQMT_REQUEST;
msg.format = MQC.MQFMT_STRING;
// ... and write some text
msg.writeString("DISPLAY QL(TRADEVAL*) CURDEPTH");

and this works. Thanks for the help!
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 » IBM MQ API Support » Can not write message to SYSTEM.COMMAND.INPUT queue
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.