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 » To avoid logging "MQJE001: Completion Code 2, Reason 20

Post new topic  Reply to topic
 To avoid logging "MQJE001: Completion Code 2, Reason 20 « View previous topic :: View next topic » 
Author Message
raghav
PostPosted: Fri Jul 22, 2005 4:49 am    Post subject: To avoid logging "MQJE001: Completion Code 2, Reason 20 Reply with quote

Novice

Joined: 15 Apr 2005
Posts: 24

Hi,

When Iam trying to get message from a queue (which is empty / no messages),using

Code:

MQQueue mqQueue = null;
mqQueue =
mqQueueMngr.accessQueue(
   strQueueName,
   MQC.MQOO_INPUT_AS_Q_DEF +   MQC.MQOO_FAIL_IF_QUIESCING,
   null,
   null,
   null);
[b]mqQueue.get(mqMessage, getMesgOptions);[/b]


Now, as there is no message in the queue, it is logging
"MQJE001: Completion Code 2, Reason 2033" in the err file (in AIX) / WSAD console (in Windows). Please let me know is there any way to avoid logging the statement.

Thanks & Regards,
Raghav[/code]
Back to top
View user's profile Send private message
malammik
PostPosted: Fri Jul 22, 2005 6:13 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

Use inifinite wait option in your gmo and read the manual.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Fri Jul 22, 2005 6:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

malammik wrote:
Use inifinite wait option in your gmo and read the manual.




http://www.mqseries.net/phpBB/viewtopic.php?topic=216&forum=5
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
raghav
PostPosted: Fri Jul 22, 2005 6:30 am    Post subject: Reply with quote

Novice

Joined: 15 Apr 2005
Posts: 24

We went through the MQException class inside com.ibm.mq.jar
There are log statements within this class itself...

We will go through the documents and reply back.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Jul 22, 2005 6:41 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

raghav wrote:
We went through the MQException class inside com.ibm.mq.jar


That is not the manual...

Any time you are looking, or trying to look, at the MQ Source Code, you are looking too hard and in the wrong place.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Fri Jul 22, 2005 8:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You should also go look at the link that Jeff gave above. It discusses your problem and want to do to turn the logging off.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
raghav
PostPosted: Tue Jul 26, 2005 5:45 am    Post subject: [SOLVED] MQException 2033 getting logged Reply with quote

Novice

Joined: 15 Apr 2005
Posts: 24

Setting MQException.log=null solved the issue
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 » To avoid logging "MQJE001: Completion Code 2, Reason 20
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.