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 » WebSphere Message Broker (ACE) Support » System out statements in Java - WMB 6.1

Post new topic  Reply to topic
 System out statements in Java - WMB 6.1 « View previous topic :: View next topic » 
Author Message
gaurav.udgir
PostPosted: Tue Jun 02, 2009 7:16 am    Post subject: System out statements in Java - WMB 6.1 Reply with quote

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
View user's profile Send private message
mgk
PostPosted: Tue Jun 02, 2009 8:19 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Jun 02, 2009 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message
gaurav.udgir
PostPosted: Tue Jun 02, 2009 11:02 pm    Post subject: Reply with quote

Apprentice

Joined: 18 May 2009
Posts: 32

Hi,

Thank you for the response. Console.txt worked for us.

Regards,
Gaurav
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 » WebSphere Message Broker (ACE) Support » System out statements in Java - WMB 6.1
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.