Introduction
Adapters provides a way to access resources that are going to be mapped into the virtual directory.
Configuration
Adapters configuration can be found in PENROSE_HOME/conf/server.xml.
Penerose 1.0:
<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>
Penrose 1.1:
<adapter name="JDBC"> <adapter-class>org.safehaus.penrose.jdbc.JDBCAdapter</adapter-class> </adapter> <adapter name="LDAP"> <adapter-class>org.safehaus.penrose.ldap.LDAPAdapter</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 the following built-in adapters:
- JDBC Adapter
- JNDI Adapter (Penrose 1.0)
- LDAP Adapter (Penrose 1.1)
If you implement your own adapter, put the jar file containing your classes into PENROSE_HOME/lib, then add an adaptor definition like above.
See also Adapter API
.
