[jboss-user] [Installation, Configuration & DEPLOYMENT] - Log4j repository selector solution for EAR files

smpub2000 do-not-reply at jboss.com
Mon Apr 28 11:06:33 EDT 2008

To solve the issue of having your own log4j.properties, the article at http://wiki.jboss.org/wiki/Log4jRepositorySelector says: "While you can solve this problem using class loader scoping, the preferred way to do this is using a RepositorySelector ". However the article in the url above does not specify how it can be (non-intrusively) adapted for an EAR:
Quote from same article:
"Now in you EJB, in your constructor, do this:
trcLog = Logger.getLogger("MyLogger");

 The EAR file for which I want to use log4j.properties has many EJBs and WAR.
Any ideas on how it can be adapted for an EAR without having to create the context in every EJB constructor and Servlet init method?  
Any other thoughts?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147262#4147262

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147262

More information about the jboss-user mailing list