simple EJB jar deployed in jboss with its own log4j configuration
Posted
by user309281
on Stack Overflow
See other posts from Stack Overflow
or by user309281
Published on 2010-05-01T15:40:11Z
Indexed on
2010/05/01
15:47 UTC
Read the original article
Hit count: 263
Hi All
I have a simple EJB jar with a stateless session bean, deployed in JBOSS AS 4.2.2, unde r/server/default/deploy. The bean is registered under JNDI tree as viewed from jboss jmx console and I am able to access it through a remote java client outside JBOSS.
Inside EJB jar, I have added some logging to be written to a separate log file, using apache log4j jar and log4j.xml. But I am not able to view any of the logs.
Also I do not wish to use jboss-log4j.xml, since there will be many other EJBs to be deployed and wish to have separate log4j for each EJB application.
Here is my one of the EJB-jar contents:
EJB_DS.jar: log4j.xml classes
apache log4j jar is added to /server/default/lib path.
Kindly highlight if i have missed any points for enabling log4j configuration
With Regards, Krishna
© Stack Overflow or respective owner