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 » 2033 MQRC_NO_MSG_AVAILABLE

Post new topic  Reply to topic
 2033 MQRC_NO_MSG_AVAILABLE « View previous topic :: View next topic » 
Author Message
kvnathan
PostPosted: Tue Jul 16, 2002 1:18 am    Post subject: 2033 MQRC_NO_MSG_AVAILABLE Reply with quote

Novice

Joined: 19 Oct 2001
Posts: 19

Hi all,
My job is to put a message in a queue and wait for the response for the specific no of seconds. According to that i have written the java code. The following are the GetMessageOptions. I am i setting all the options correctly. Because it is still throwing the 2033 error.


oGetMsgOpt = new MQGetMessageOptions();
oGetMsgOpt.options = MQC.MQGMO_FAIL_IF_QUIESCING | MQC.MQGMO_CONVERT | MQC.MQGMO_ACCEPT_TRUNCATED_MSG | MQC.MQGMO_WAIT;
oGetMsgOpt.matchOptions = MQC.MQMO_MATCH_CORREL_ID;
oGetMsgOpt.waitInterval=1000;
oGetMessage = new MQMessage();
oGetMessage.correlationId=oPutMessage.messageId;
oGetQueue.get(oGetMessage,oGetMsgOpt);
strMessage = oGetMessage.readString(oGetMessage.getDataLength());
System.out.println(strLogMessage);


My task is to wait for specific seconds for response. If i did't received any response then i have to do seperate process. And if i received an response then i have to do another process.

Please give me some tips to overcome this problem.

Thanks in advance

Nathan
Back to top
View user's profile Send private message Send e-mail
kvnathan
PostPosted: Tue Jul 16, 2002 1:26 am    Post subject: Reply with quote

Novice

Joined: 19 Oct 2001
Posts: 19

Sorry Guys it is working.

Problem is in database i have maintained the waitinterval as 10000
and in program i am dividing this 10000 by 1000 so it will wait ony 10 milliseconds.

Now i corrected in database as 10 and in program as 10*1000

Sorry once again

Thanks

Nathan
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » 2033 MQRC_NO_MSG_AVAILABLE
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.