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 » Log User Trace statement in JavaCompute Node

Post new topic  Reply to topic
 Log User Trace statement in JavaCompute Node « View previous topic :: View next topic » 
Author Message
KVBuser
PostPosted: Thu May 19, 2011 2:55 am    Post subject: Log User Trace statement in JavaCompute Node Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 9

Hi,

In ESQL we can use the "LOG USER TRACE" statement to write a log line in the user trace log. I was wondering if a similar statement exists in Java. We would like to write towards the user trace log from within the Java computeNode.

Thanks for your reply !

Best Regards,
Kurt.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu May 19, 2011 3:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Yes, the documentation indicates that there is an existing method to do this in the Broker Java API.
Back to top
View user's profile Send private message
Cogito-Ergo-Sum
PostPosted: Thu May 19, 2011 3:57 am    Post subject: Reply with quote

Master

Joined: 07 Feb 2006
Posts: 293
Location: Bengaluru, India

More specifically Logging errors with the JavaCompute node.
_________________
ALL opinions are welcome.
-----------------------------
Debugging tip:When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
---Sherlock Holmes
Back to top
View user's profile Send private message
KVBuser
PostPosted: Fri May 20, 2011 5:11 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 9

Thanks for the feedback, but I still didn't find any Java method which will write towards the user trace log.

The sample which is referred by the link, is using the MbService.logError method which writes to the syslog/eventlog.

I am looking for a method which writes to the user trace log.

Thanks in advance !
Back to top
View user's profile Send private message
paintpot
PostPosted: Fri May 20, 2011 5:56 am    Post subject: Reply with quote

Centurion

Joined: 19 Sep 2005
Posts: 112
Location: UK

I'm not aware of any way in Java, without writing it yourself.

You can use log4j to your own log file, or you could try wrapping the existing C implementation provided by IBM (which would do what you originally asked for) - I don't know how stable this would be, but it sounds like fun

See cciUserTrace and cciIsTraceActive etc.
Back to top
View user's profile Send private message
KVBuser
PostPosted: Fri May 20, 2011 6:30 am    Post subject: Reply with quote

Newbie

Joined: 22 Oct 2010
Posts: 9

That is indeed the conclusion I already made, but it isn't what I hoped for

Thanks for the reply !
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 » Log User Trace statement in JavaCompute Node
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.