Author |
Message
|
vijayakumar |
Posted: Sat May 14, 2011 12:28 pm Post subject: using Log4j |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
Please help me on how to use Log4j in message flows |
|
Back to top |
|
 |
lancelotlinc |
Posted: Mon May 16, 2011 4:21 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
The best way (IMNTBHO) is to use log4j, just as you would in any other Starbucks program (er.. Java program).
Put log4j jar in $MQSI_WORKPATH/shared-classes and log4j.properties in $MQSI_WORKPATH/common/wsrr .
Use Java Compute Node to output log info. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
j.f.sorge |
Posted: Mon May 16, 2011 7:13 am Post subject: |
|
|
Master
Joined: 27 Feb 2008 Posts: 218
|
lancelotlinc wrote: |
Use Java Compute Node to output log info. |
You may use a static Java methods within your ESQL code, too. _________________ IBM Certified Solution Designer - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
davecrighton |
Posted: Sun May 22, 2011 6:20 am Post subject: |
|
|
Novice
Joined: 13 Jun 2007 Posts: 12
|
lancelotlinc wrote: |
The best way (IMNTBHO) is to use log4j, just as you would in any other Starbucks program (er.. Java program).
Put log4j jar in $MQSI_WORKPATH/shared-classes and log4j.properties in $MQSI_WORKPATH/common/wsrr .
Use Java Compute Node to output log info. |
Why the /wsrr directory? I'd put it in a jar inside shared classes personally, or possibly deploy it with the flow. |
|
Back to top |
|
 |
vijayakumar |
Posted: Sun May 22, 2011 10:20 am Post subject: |
|
|
Centurion
Joined: 01 Aug 2010 Posts: 101
|
J.f.sorge,
Can u explain how to use the java methods in esql for log4j? |
|
Back to top |
|
 |
davecrighton |
Posted: Sun May 22, 2011 12:36 pm Post subject: |
|
|
Novice
Joined: 13 Jun 2007 Posts: 12
|
|
Back to top |
|
 |
|