Author |
Message
|
lash |
Posted: Thu Oct 23, 2003 9:44 am Post subject: how to see log file in jms client environment ? |
|
|
 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 |
|
 |
EddieA |
Posted: Thu Oct 23, 2003 3:36 pm Post subject: |
|
|
 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 |
|
 |
lash |
Posted: Fri Oct 24, 2003 7:35 am Post subject: log file not found |
|
|
 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 |
|
 |
EddieA |
Posted: Fri Oct 24, 2003 8:06 am Post subject: |
|
|
 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 |
|
 |
lash |
Posted: Fri Oct 24, 2003 8:42 am Post subject: no data on log file |
|
|
 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 |
|
 |
bower5932 |
Posted: Tue Oct 28, 2003 10:36 am Post subject: |
|
|
 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 |
|
 |
|