Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 67625 invoked from network); 7 Feb 2002 18:12:21 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Feb 2002 18:12:21 -0000 Received: (qmail 28874 invoked by uid 97); 7 Feb 2002 18:11:59 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@jakarta.apache.org Received: (qmail 28815 invoked by uid 97); 7 Feb 2002 18:11:58 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 28775 invoked from network); 7 Feb 2002 18:11:58 -0000 Message-Id: X-Mailer: Novell GroupWise Internet Agent 5.5.5.1 Date: Thu, 07 Feb 2002 13:11:33 -0500 From: "DONNIE HALE" To: Subject: Re: Best practice for using Log4j, EJB, Struts,and WebLogic6.1together Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N First, I'd highly recommend against log4j.properties existing in the = system classpath that WebLogic runs under. The only thing I've found that, = for a typical application, would go in WebLogic's system classpath is JDBC = drivers. Everything else should go in the .ear file. Second, our use of a "lib" directory within the .ear flie is just a = convention we chose, as is the use of an "etc" directory in the .ear file = for property files. We use the EJB manifest's Class-Path attribute to = refer to those directories at the .ear file level. My earlier message in = this thread included an example Class-Path attribute for our .ear file = format. Donnie >>> manikandan.balasubramanian@wipro.com 02/07/02 01:12AM >>> Hi, We are also using the same architecture.But I have the following = questions 1) What if log4j.properties exists in the classpath ?Will log4j use the = file inside the EAR or the one in the classpath.How to resolve this ? 2)Our Directory structure is src | EJB-MODULES META-INF | application.xml WEB-MODULES Now where exactly should I place log4j.jar.I could not understand this = from J2EE blueprints or from your reply.Could you just elaborate on this = "lib" folder in EAR.I have been struggling with this for quite some time = now. TIA, Mani DONNIE HALE wrote: > We don't do any programmatic startup stuff. It's all in our log4j.propert= ies file. > > We do use NDCs. So we have a servlet filter which sets the NDC to a = value prefixed with "JSP" when the app is in the "web app space", and a = dynamic proxy which sets the NDC to a value prefixed with "EJB" when the = app is in the EJB space. > > But as far as configuration goes, it's strictly in the .properties file. > > Hope that helps, > > Donnie > > >>> eric.ma@comcast.net 02/05/02 08:18PM >>> > Thanks Donnie and Ceki. One more question - how do you set up log4j? > Do you use a WebLogic startup class (will tie you to an app server > vendor)? A stateless session bean that is loaded in the free pool when > the server starts up? Or other mechanism? > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: