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 » IBM MQ Java / JMS » how to see log file in jms client environment ?

Post new topic  Reply to topic
 how to see log file in jms client environment ? « View previous topic :: View next topic » 
Author Message
lash
PostPosted: Thu Oct 23, 2003 9:44 am    Post subject: how to see log file in jms client environment ? Reply with quote

Apprentice

Joined: 14 May 2003
Posts: 47

hello friends,
i want to see the log file for the jms program running at mq client.
after checking all the docs i came to know that we have to alter the
runjms file supplied with mqclient.
but i could not figure out how to do this ?

do any body have any idea on how we can alter this file to see the log file
or do we have any other options.

iam pasting this runjms file below for ur reference...

more runjms
#!/bin/sh

#
# Script to simplify the running of JMS client applications, by passing in
# the Java properties needed for trace and logging. The directory names are
# suggested defaults which may be altered to suit your particular installation
#

java -DMQJMS_LOG_DIR=$MQ_JAVA_INSTALL_PATH/log -DMQJMS_TRACE_DIR=$MQ_JAVA_INSTAL
L_PATH/trace -DMQJMS_TRACE_LEVEL=$MQJMS_TRACE_LEVEL $*

thanks in advance,
regards,
lash.
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Oct 23, 2003 3:36 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

All the option -DMQJMS_LOG_DIR=$MQ_JAVA_INSTALL_PATH/log does is re-direct the output that would normally go to STDERR to a file instead. The only thing you are likely to see are 'serious' errors.

You then run 'formatlog' to convert this to text.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
lash
PostPosted: Fri Oct 24, 2003 7:35 am    Post subject: log file not found Reply with quote

Apprentice

Joined: 14 May 2003
Posts: 47

hi,
do we have to create the log file ? coz i could not see the log file in the directory any where at client.
on log file i have to use format log command.

thanks,
lash.
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Oct 24, 2003 8:06 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

No, the log file will be created when it's used.

As I said, that 'log' is the re-direction of STDERR, so if you code is working cleanly, it isn't writing anything to this destination.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
lash
PostPosted: Fri Oct 24, 2003 8:42 am    Post subject: no data on log file Reply with quote

Apprentice

Joined: 14 May 2003
Posts: 47

i looked at log file it is not writing any thing on that file.

there is a file at /var/mqm/errors where it used to write all the errors when i used base java program.
but when iam using jms program it is not writing any thing there.

there is a log file at /opt/mqm/java/log
but it is not writing any thing here when used base java or jms.

do we have to change the path in runjms file or something like that i dont know just a wild guess.

or just do i have to just use command runjms ?

iam confuesed completly.....?????????

regards, and thanks for prompt reply
lash
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Oct 28, 2003 10:36 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

There are a couple of sub-sections in the Solving Problems section of the Using Java manual. One is on Tracing Programs and the other is on logging. They give some details on what to set. You might want to check them out.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » how to see log file in jms client environment ?
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.