users@glassfish.java.net

Reading JNDI properties from Glassfish JavaBeanFactory in Logback

From: <forums_at_java.net>
Date: Sun, 10 Apr 2011 02:15:27 -0500 (CDT)

We use logback and slf4j as logging libraries for our application and
glassfish v3 as our application server. For the deployment time configuration
properties we have created a "JNDI Custom Resource" in glassfish with the
factory class as "org.glassfish.resources.custom.factory.JavaBeanFactory".
My question is - How do I configure logback to use one of properties
specified to use one of the properties of the newly created java bean
instance? 
I intend to add a property as the logback log file location in the java
bean. This can then be used in logback.xml to specify the logback file
location.

 

 

 

 


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