This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Log4j in JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Log4j in JBOSS" Watch "Log4j in JBOSS" New topic

Log4j in JBOSS

uday dustin

Joined: Jan 26, 2006
Posts: 2

I have 2 .ejb3 files A.ejb3 and B.ejb3, I am trying to log them in different files.
I placed log4j.xml file in each of them(Let me know if this is not the right way), log is still written according to the log4j.xml in conf/log4j.xml

Can anyone tell me how to configure the log4j.xml in regular .ejb3 file.
I read the logging page in JBOSS it tells about war file only.
In war files I could figure it out by placing in WEB-INF and calling a servlet.
I agree. Here's the link:
subject: Log4j in JBOSS
Similar Threads
loggin setup in Jboss
Log Issue in OC4j
PropertiesFile in Classpath
New to log4j - need some advice
logging with log4j under JBoss4