Hi All: I am facing the same issues.
My current configuration currently uses a servlet to initalize Log4J. How can I make this configuration available to the EJB Layer without having to read the configuration file from the EJB Tier. Regards, Ven --- "Bellamy, Scot" <[EMAIL PROTECTED]> wrote: > I don't believe that Log4J violates the EJB spec, > unless you use it in > such a way that it does. Section EJB.18.1.2 > contains a list of > programming restrictions for bean providers. In > that section it states > "An enterprise bean must not use the java.io package > to attempt to > access files and directories in the file system." > > I'm not sure if Webshpere allows violation of the > specification or not. > There are a couple of ways to work around this, > however. > > 1. You can use the JDBC appender to write log > information to a > database. Since JDBC is part of the J2EE > specification this is fully > complient. > > 2. You can create a logging service that runs in a > separate process and > utilize JMS to send messages from your EJB beans to > the logging service. > > Scot. > > > -----Original Message----- > From: Michael Wang (IT) > [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, April 03, 2002 1:30 PM > To: 'Log4J Users List' > Subject: Use Log4J with WebSphere > > > I'ved asked this question before. > > Now my problem is my Log4J works fine with any > classes except EJB beans > class. Any idea about how to configure WebSphere > 4.0? > > I run my J2EE app within WebSphere for a while. Then > I examine my log > output file, it has all necessary output from any > java classes except > EJB beans. I vaguely remember awhile back somebody > mentioned that Log4J > violates EJB spec. Do I need to configure my > WebSphere 4.0 to allow > access to the file (the output is file). Thanks. > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>