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 » WBI V6 Java compute node and sytem.out.println

Post new topic  Reply to topic
 WBI V6 Java compute node and sytem.out.println « View previous topic :: View next topic » 
Author Message
[EG]Slayer
PostPosted: Wed Nov 19, 2008 3:13 am    Post subject: WBI V6 Java compute node and sytem.out.println Reply with quote

Novice

Joined: 01 Aug 2008
Posts: 16

Hi all,

I'm using WBI Message Broker V6.02 on AIX 5.3.
In a java compute node I want to generate a trace file using system.out.println. I would like to know where is the default path for this trace because I can't find it ... Maybe I have to activate something to generate the trace file ?

Thanks for your help.
Back to top
View user's profile Send private message
broker_new
PostPosted: Wed Nov 19, 2008 5:21 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

/var/mqsi/components/BROKERNAME/EG(UUID)/stdout
/var/mqsi/components/BROKERNAME/EG(UUID)/stderr
_________________
IBM ->Let's build a smarter planet


Last edited by broker_new on Wed Nov 19, 2008 6:19 am; edited 1 time in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 19, 2008 5:59 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Only on Unix platforms.

On windows platforms, at 6.0 levels at least, stdout goes NOWHERE.

Do not use stdout from your Java Compute nodes.
Back to top
View user's profile Send private message
[EG]Slayer
PostPosted: Wed Nov 19, 2008 7:27 am    Post subject: Reply with quote

Novice

Joined: 01 Aug 2008
Posts: 16

ok, thanks
Back to top
View user's profile Send private message
JLRowe
PostPosted: Wed Nov 19, 2008 8:12 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

I don't see why you can't redirect it on windows, or better still use a logging library - then you won't have to remove your logging statements when it goes into production.


[/code]
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Nov 19, 2008 8:30 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

JLRowe wrote:
I don't see why you can't redirect it on windows,

Because it's already redirected to nowhere.

JLRowe wrote:
or better still use a logging library - then you won't have to remove your logging statements when it goes into production.


Yes. This is the correct thing to do. Use Log4J or the built in Java logging facilities, or MbService.log* methods and not System.out.println. Then it is manageable and controllable.
Back to top
View user's profile Send private message
mgk
PostPosted: Wed Nov 19, 2008 10:31 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

FYI, from WMB 6.1 Windows stdout and stderr get redirected into a file called Console.txt in your workpath.

Also, in 6.0 for testing purposes on Windows you can change the service to "Interact with the Desktop" in the services snapin and then you can see stdout/stderr in a console window..


Cheers,
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WBI V6 Java compute node and sytem.out.println
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.