Why can't you simply use a static initializer in your EJB to configure Log4J? I.e:
static {
PropertyConfigurator.configure("myfile.properties");
}
On Apr 28, 2004, at 8:50 AM, Robert Pepersack wrote:
> Hi all.
>
> How can I programmatically find out if log4j has already been
> configured? I configure log4j in my ejbCreate() method using
> PropertyConfigurator.configure("myfile.properties"). I don't want this to
> run every time my EJB container creates an instance of my bean class. I've
> looked in the book, the code, and the API docs, but I can't find it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]