Author |
Message
|
coolbeans |
Posted: Mon Aug 23, 2004 7:24 am Post subject: Can you prevent errors going to System.err? |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Mon Aug 23, 2004 7:35 am Post subject: |
|
|
 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 |
|
 |
coolbeans |
Posted: Mon Aug 23, 2004 7:42 am Post subject: |
|
|
 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 |
|
 |
coolbeans |
Posted: Mon Aug 23, 2004 7:45 am Post subject: |
|
|
 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 |
|
 |
RogerLacroix |
Posted: Mon Aug 23, 2004 8:33 am Post subject: |
|
|
 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 |
|
 |
xmli |
Posted: Tue Sep 07, 2004 10:37 pm Post subject: |
|
|
 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 |
|
 |
|