|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
System out statements in Java - WMB 6.1 |
« View previous topic :: View next topic » |
Author |
Message
|
gaurav.udgir |
Posted: Tue Jun 02, 2009 7:16 am Post subject: System out statements in Java - WMB 6.1 |
|
|
Apprentice
Joined: 18 May 2009 Posts: 32
|
Hi All,
I am using a Java Compute Node in my flow and need to add and see the Java System Out statements included in the code. I tried using the option ' Allow service to interact with desktop' available in services. But its not working. Could you please tell me the process to see the System out statements in Java code in WMB 6.1.
Thank you in advance.
Regards,
Gaurav |
|
Back to top |
|
 |
mgk |
Posted: Tue Jun 02, 2009 8:19 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
Hello. In WMB 6.1 on Windows, stderr and stdout are both redirected to a file called "console.txt" which lives in your workpath (one per execution group) . The best way to find it is to search for the file in the workpath (the -w flag to mqsicreatebroker). By default, if -w is not specified, it will be in:
Code: |
C:\Documents and Settings\All Users\Application Data\IBM\MQSI\components\[BrokerName]\[ExecutionGroupUUID]\console.txt |
Regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 02, 2009 9:40 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
But you're a lot better off using the MBService class to write stuff to the event log than to use print statements.
Or at least using your own log file and redirecting System.out to that. |
|
Back to top |
|
 |
gaurav.udgir |
Posted: Tue Jun 02, 2009 11:02 pm Post subject: |
|
|
Apprentice
Joined: 18 May 2009 Posts: 32
|
Hi,
Thank you for the response. Console.txt worked for us.
Regards,
Gaurav |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|