Class TomcatJndiPropertiesFromResourceFactory

java.lang.Object
com.saperion.common.config.jndi.JndiPropertiesFromResourceFactory
com.saperion.common.config.jndi.TomcatJndiPropertiesFromResourceFactory
All Implemented Interfaces:
ObjectFactory

public class TomcatJndiPropertiesFromResourceFactory extends JndiPropertiesFromResourceFactory

This is a class provided for use as an object factory for JNDI resources in an Apache Tomcat server. In the webapp-specific context.xml there are resources specified from which this factory builds a properties object.

If this TomcatJndiPropertiesFromResourceFactory should be used to parse context.xml resources to properties you must specify this factory in the context.xml as follows

 
 <Resource name="myResourceName"
 auth="Container"
 type="java.util.Properties"
 factory="com.saperion.common.config.jndi.TomcatJndiPropertiesFromResourceFactory"
 description="key-value-pairs"
 singleton="true"
 
 myKey=myValue
 myKey2=myValue2
 \>
 
 
Author:
sik