Penrose 0.9.8 Adapters
Adapters provides a way to access resources that are going to be mapped into the virtual directory. Adapters configuration can be found in PENROSE_HOME/conf/server.xml.
<adapter name="JDBC"> <adapter-class>org.safehaus.penrose.connector.JDBCAdapter</adapter-class> </adapter> <adapter name="JNDI"> <adapter-class>org.safehaus.penrose.connector.JNDIAdapter</adapter-class> </adapter>
To define an adapter, you need to specify the following values:
- Name
Specify the name of the adapter. This will be used in defining connections.
- Class
Specify the class name of the adapter.
Penrose provides two built-in adapters:
- JDBC Adapter
- JNDI Adapter
If you implement your own adapter, put the jar file containing your classes into PENROSE_HOME/lib, then add an adaptor definition like above.