Dashboard > Penrose > ... > Penrose 0.9.8 Penrose Server User Guide > Penrose 0.9.8 Adapters
Penrose 0.9.8 Adapters
Added by Endi S. Dewata, last edited by Endi S. Dewata on Nov 29, 2005  (view change)
Labels: 
(None)


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.

Site running on a free Atlassian Confluence Open Source Project License granted to Safehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators