Ceki,

        As you say Java App servers load only one MBean Server using a high
level classloader. This MBean Server wont be able to acces log4j.jar if
log4j resides at application level and therefore it is loaded by a lower
level classloader. But actually MBean Server does not need to access log4j
by itself, it access only MBean methods and properties using introspection
so classloader is not a problem. The only JMX classes that need to access
log4j are log4j MBeans and that MBeans are loaded with the same classloader
as log4j. 

        The only problem in this situation is the one I pointed in my first
mail. An application server could run some different applications, each one
with one different log4j instance, isolated between them by classloader
scheme. But the names used to register log4j MBeans on MBean Server cannot
be the same. This is what happens right now because actual implementation
uses a hardcoded string "log4j". The actual code will work if log4j is
deployed at the server classloader level, but this is not desirable under
certain circumstances.

        cheers

-----Mensaje original-----
De: Ceki Gülcü [mailto:[EMAIL PROTECTED]
Enviado el: lunes, 24 de noviembre de 2003 19:00
Para: Log4J Developers List
Asunto: RE: log4j JMX implementation



Hello Eduardo,

We need to be able to name logger repositories, even the default one. That 
much is clear.

Now, even if each default logger repository per web-application (per 
log4j.jar in WEB-INF/lib) has a name, how can the JMX server access the 
different logger repositories if they are loaded by different class 
loaders, which are potentially invisible to the JMX server?

Does my question make sense?

At 06:27 PM 11/24/2003 +0100, Macarron Miegemolle, Eduardo wrote:


>         Yoav,
>
>         We are not using the Repository Selector method to keep different
>instances of log4j for each application, we use the simpler method of
>droping log4j.jar on each WEB-INF/lib. So tiding somehow JMX domain to
>Repository Selector wont work for us. So I think that JMX domain same
should
>be configurable as you have already pointed. In fact, the domain name of
the
>first MBean is provided by application initialitiation code when registers
>it.
>
>         cheers
>
>-----Mensaje original-----
>De: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Enviado el: lunes, 24 de noviembre de 2003 18:00
>Para: Log4J Developers List
>Asunto: RE: log4j JMX implementation
>
>
>
>Howdy,
>This is a good point.  We should have the JMX configurable or perhaps tied
>to the repository selector, since you will want the log4j repository and
JMX
>domain to match.
>
>Yoav Shapira
>Millennium ChemInformatics

-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to