I have a simple EJB jar with a stateless session bean, deployed in JBOSS AS 4.2.2, under <JBOSS_HOME>/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 <JBOSS_HOME>/server/default/lib
path.
Kindly highlight if i have missed any points for enabling log4j configuration