log4j+ejb

Pedro Salazar <[email protected]>
Newsgroups gmane.comp.java.sun.ejb.general
Organization Portugal Telecom Inova????o, S.A.
Message-ID <[email protected]>
Greetings,

I wondering how to use log4j in ejb but I have a few questions about
it's use.

1)to separate and isolate contexts, I should have a log4j.jar and a
log4.xml/log4j.properties in each application (ejb,war,ear) instead
using a common shared log4j?

2)usually in WAR files, I used a servlet loaded on startup just for
initialize log4j.xml/log4j.properties. In EJB, where (in what method)
should I init the log4j? Should I still use a servlet in a war file for
that?

3)The EJB specification says that an EJB should not perform file I/O.
So, if I log something in log4j and if I have a FileAppender on my
category, it could result some problems? If true, should I eliminate teh
FileAppender or there is any way to avoid or deactivate the FileAppender
just for that logger?

thanks,
Pedro Salazar.
--
PS
[email protected]
PGP:0E129E31D803BC61

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.