NamingInputModule accesses values stored in the JNDI context.
This module accept any configuration parameters and passes them as
properties to the InitialContext. When connecting to the Naming context
of the server Cocoon is running in, no parameters are required.
Example module configuration when connecting to external WebLogic server:
<java.naming.factory.initial>weblogic.jndi.WLInitialContextFactory</java.naming.factory.initial>
<java.naming.provider.url>t3://localhost:7001</java.naming.provider.url>
Example usage:
<map:generate src="{naming:java:comp/env/greeting}"/>
This lookups greeting entry from the environment of the webapp.
Webapp's web.xml should define this entry:
<env-entry>
<env-entry-name>greeting</env-entry-name>
<env-entry-value>Hello, World</env-entry-value>
<env-entry-type>java.lang.String</env-entry-type>
</env-entry>
author: Vadim Gritsenko version: $Id: NamingInputModule.java 36239 2004-08-11 18:28:06Z vgritsenko $ |