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 » Can you prevent errors going to System.err?

Post new topic  Reply to topic
 Can you prevent errors going to System.err? « View previous topic :: View next topic » 
Author Message
coolbeans
PostPosted: Mon Aug 23, 2004 7:24 am    Post subject: Can you prevent errors going to System.err? Reply with quote

Novice

Joined: 16 Jul 2004
Posts: 20
Location: London, UK

When an exception occurrs, by default MQ appears to log the error to System.err i.e. MQJE001: Completion Code 2, Reason 1234. The call MQEnvironment.disableTracing() doesn't appear to fix this problem, what else can be done?
Thanks in advance.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Aug 23, 2004 7:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

RTFM.

From WMQ Using Java manual, page 117, section MQException:
Quote:
log public static java.io.outputStreamWriter log

Stream to which exceptions are logged. (The default is System.err.) If you set this to null, no logging occurs.

Regards
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
coolbeans
PostPosted: Mon Aug 23, 2004 7:42 am    Post subject: Reply with quote

Novice

Joined: 16 Jul 2004
Posts: 20
Location: London, UK

Thanks. Pleople should really learn to read the manual;) I think though the online manual needs a search feature.
Back to top
View user's profile Send private message
coolbeans
PostPosted: Mon Aug 23, 2004 7:45 am    Post subject: Reply with quote

Novice

Joined: 16 Jul 2004
Posts: 20
Location: London, UK

Also as a little side note, can someone PLEASE PLEASE PLEASE javadoc the code?
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Mon Aug 23, 2004 8:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Open or download the PDF version of the WMQ Using Java manual. The search feature in Acrobat is very good.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
xmli
PostPosted: Tue Sep 07, 2004 10:37 pm    Post subject: Reply with quote

Newbie

Joined: 07 Sep 2004
Posts: 3

Another option is to redirect System.err to another printstream with System.setErr(PrintStream err)
_________________
Syntax error detected at or near end of command segment below:-
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 » Can you prevent errors going to System.err?
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.