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 » Supressing 2033 error messages

Post new topic  Reply to topic
 Supressing 2033 error messages « View previous topic :: View next topic » 
Author Message
GaryGWood
PostPosted: Tue Jun 15, 2004 6:15 am    Post subject: Supressing 2033 error messages Reply with quote

Apprentice

Joined: 14 Oct 2003
Posts: 48
Location: Austin, TX

I have read that the following lines of code will supress 2033 "error" messages:
Code:
MQEnvironment.disableTracing ();
MQException.log = null;


Does this suppress all error messages?
Back to top
View user's profile Send private message
sfari
PostPosted: Tue Jun 15, 2004 6:22 am    Post subject: Reply with quote

Centurion

Joined: 15 Apr 2003
Posts: 144

Tracing is an additional feature to find errors in MQ programms. It is described in the book "System Administrating Guide". It has nothing to do with the error codes, the api functions are returning.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Jun 15, 2004 8:19 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
I have read that the following lines of code will supress 2033 "error" messages:


If you just want to suppress 2033s then in the catch block put an if statement and check the MQException for 2033.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
GaryGWood
PostPosted: Tue Jun 15, 2004 12:33 pm    Post subject: Reply with quote

Apprentice

Joined: 14 Oct 2003
Posts: 48
Location: Austin, TX

vennela wrote:
If you just want to suppress 2033s then in the catch block put an if statement and check the MQException for 2033.


Thanks, I did do that but the error message writes out to the console before it goes to the catch block. Any way to prevent that?
Back to top
View user's profile Send private message
clindsey
PostPosted: Tue Jun 15, 2004 1:17 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

Gary,

MQException.log = null will prevent the console output on errors.

Charlie
Back to top
View user's profile Send private message
GaryGWood
PostPosted: Wed Jun 16, 2004 11:01 am    Post subject: Reply with quote

Apprentice

Joined: 14 Oct 2003
Posts: 48
Location: Austin, TX

Awesome, thanks Charlie!
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 Java / JMS » Supressing 2033 error messages
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.