Hi, I have an EAR project where in I have to log all my servlet logs and EJB logs to two different files. I have a log4j.xml file packaged in the root directory of the .ear file. In other words the .ear file contains log4j.xml, log4j.jar, webModule.war and ejbModule.jar file. While the servlet log are getting logged as expected with the below log4j.xml file, EJB logs are completely being omittied from getiing logged to the firstEJB.log file.
If I add both the appenders to the <root> catagory the servlet logs get logged to firstS.log twice and once to firstE.log again missing the EJB logs altogether. I am not using any log managers in my code. Is it some initialization problem with the ejbMOdule or someing like that? Please help me in this regard. Thanks in advance.
Based on what you have posted I don't see anything wrong with the code or the config. I would expect the logs from the bean to be logged to the firstE.log and firstS.log files, assuming the bean method is being called.