[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: JDBC Appenders, J2EE packaging . . .
From:       "Renaud Waldura" <renaud+log4j () waldura ! com>
Date:       2001-10-29 6:33:58
[Download RAW message or body]

> 2. Using Log4J in Weblogic and in a cluster

Your clustering question is very interesting. I unfortunately cannot provide
any answers, as I can't get WebLogic to read Log4J's XML config file (see my
next message to this list, I have yet to receive an answer on the Weblogic
newsgroups). See, I'd love to cluster, but I'm not even getting very far on
a single machine.

Anyway, I'll volunteer some information about packaging, in the hope it may
help you a bit. We package our app in a WAR file, since we don't have any
EJBs. log4j.jar is placed in WEB-INF/libs, and everything works perfectly.
As I mentioned above, WebLogic can't seem to be able to deal with this, but
on Tomcat it works just fine.

Were we to use EJBs, my understanding of the packaging spec leads me to
believe log4j.jar would have to be present at the EAR level, since both
beans and the Webapp would be making use of it.

--Renaud




----- Original Message -----
From: "Noah Davis" <noahd1@yahoo.com>
To: <log4j-user@jakarta.apache.org>
Sent: Tuesday, October 23, 2001 8:09 AM
Subject: JDBC Appenders, J2EE packaging . . .


> Hi, I'm a complete newbie to Log4J, Apache projects,
> and somewhat to J2EE, so I apologize in advance for my
> naivete - if these questions have been previously
> answered/covered somewhere else and this isn't the
> right forum, please just point me in that direction.
> Thanks in advance. And sorry for the spew of questions
> . .
>
> I've looked through a lot of the documentation, and
> some of the code, and here's some questions:
>
> 1. Using a JDBC adapter
>
> I would have thought that this would be a primary
> usage of Log4J, but there's not one associated with
> the official release, just from contributions. Is
> there a reason for this? I also have several questions
> regarding the JDBC adapters available as
> contributions:
>
> a. How comparatively reliable/tested are the
> contributions in relation to the official release?
>
> b. How performant are the JDBC adapters available?
> And, is there a way to speed/degrade performance by
> using:
>
> - JMS in addition to JDBC
> - Build a system whereby numerous log requests are
> queued up such that only a single database call is
> required for multiple inserts
>
> c. Are there discussions/documentation about the JDBC
> adapters available?
>
> d. Are the JDBC adapters compatible with
> ObjectRenderers? Ie, can I store different kinds of
> objects in different tables even . . (I'm pushing it
> here, I reckon. Am I asking Log4J to do something it's
> just not built to do?)
>
> 2. Using Log4J in Weblogic and in a cluster
>
> I know that Log4J can be configured at runtime, but
> how would you go about configuring it across a
> cluster, ie such that making a change to a
> configuration file at runtime changes the behavior of
> log4j across the cluster? Additionally, what is the
> recommended approach for how to package Log4J (in J2EE
> terms) such that it can be accessible to all EJBs and
> Web Apps that potentially use it (eg, you couldn't
> just package it with one web web, or one EJB jar if
> you have multiple EJB jars). Would it then need to be
> packaged at the .ear level?
>
> Thanks in advance.
>
> Noah
>
> PS - BTW, has anyone noticed that the search mechanism
> at geocrawler for the log4J list doesn't work? It
> always comes up with no results, regardless of the
> search (try "log4j"). oh well.
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
>
>


--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic