users@glassfish.java.net

Re: Reading JNDI properties from Glassfish JavaBeanFactory ...

From: <forums_at_java.net>
Date: Sun, 10 Apr 2011 04:13:50 -0500 (CDT)

I have not used logback.

Could JMXConfigurator be an option ?

http://logback.qos.ch/manual/jmxConfig.html

Using the implementation of JavaBean, you can call "configureLogBack()" which
will internally use JMX to configure the log-back.

Also, in order to represent the logBack file, your JavaBean might have to be
singleton. So, you can have your own implementation of ObjectFactory instead
of

"org.glassfish.resources.custom.factory.JavaBeanFactory" as the latter will
return new instance upon each custom-resource lookup.

Your implementation of ObjectFactory can return a singleton JavaBean which
represents the logback configuration which can also have the capability to
configure logback using JMXConfigurator.


--
[Message sent by forum member 'jr158900']
View Post: http://forums.java.net/node/790505