|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using Log4j with WESB |
« View previous topic :: View next topic » |
Author |
Message
|
venky |
Posted: Mon Dec 10, 2007 8:37 pm Post subject: Using Log4j with WESB |
|
|
 Master
Joined: 08 Jul 2003 Posts: 205
|
Hi,
Iam trying to use log4j in my mediation module's java component. I am running wid with wesb, wps test environment.
1. I added the log4j jar file in the build path, so I was able to successfully import the java classes in my code.
2. However, I was not able to run the sample because of runtime errors. (I have copied the log4j jar file to the bi_v6/lib folder and restarted the server).
Has anyone been through such a problem? Also where should I store the log4j config files for the runtime to access it ?
Thanks a lot,
V. |
|
Back to top |
|
 |
LazyBoy |
Posted: Wed Dec 12, 2007 5:11 am Post subject: |
|
|
Voyager
Joined: 04 May 2006 Posts: 78
|
Put the jar file under bi_v6/lib/ext and restart the server.
During runtime it picks up from the above folder. |
|
Back to top |
|
 |
mq2wps |
Posted: Thu Dec 27, 2007 11:45 pm Post subject: Using Log4j with WESB |
|
|
Novice
Joined: 06 Feb 2007 Posts: 14
|
Alternatly in the WAS Admin console under tab Environment>Shared Libraries define a folder and place your Jars in that folder.
Add the defined library under Application servers > server1 > Class loader > with class loader mode being parent first.
Restart the Process Server. |
|
Back to top |
|
 |
JLRowe |
Posted: Fri Dec 28, 2007 5:01 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
You could also use java.util.logging which is built-in to JDK1.4, you can then control the logging levels through the WAS console.
Or, use jakarta commons logging which defers logging to the API it finds at runtime. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|