logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Taylor <cstay...@pacbell.net>
Subject Re: JMS and JNDI
Date Tue, 26 Dec 2000 20:22:47 GMT

It would cool if we could access Log4J from JNDI if we¹re in an enterprise
environment like EJB.  The way I currently accomplish that in Weblogic is
through a Startup class (one of those classes that gets loaded before the
server turns over control to the application).

Something like the following:

> InitialContext ctxt = new InitialContext();
> CategoryFactory factory = (CategoryFactory)ctxt.lookup(²java:comp/env/log4j²);
> Category log = Category.getInstance(²fully.qualified.class.name²,factory);


On 12/26/00 6:28 AM, "Ceki Gulcu" <cgu@urbanet.ch> wrote:

> Greetings,
> Is it reasonable to assume that in an environment where the JMS is used
> then that environment would have a JNDI setup as well? I am aware that  JMS
> can be used without JNDI. However, does anyone use JMS without JNDI in
> practice?
> I am wondering whether to tie JNDI to the JMSAppender... Your
> comments/advice most welcome. Ceki
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-dev-help@jakarta.apache.org

View raw message