Forum Stats

  • 3,781,112 Users
  • 2,254,481 Discussions
  • 7,879,573 Comments

Discussions

Is there a way to register declaratively a custom object into WL JNDI

Is there a way to register declaratively a custom object into WL JNDI. (either through Admin console, or config.xml)
This is how we are doing it inside jetty environment config file.

JNDI name is enterprise/cms/PerforceEnv, and the reference object is com.enterprise.content.repository.scm.PerforceSettings.

<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<New id="PerforceEnv" class="org.mortbay.jetty.plus.naming.Resource">
<Arg>enterprise/cms/PerforceEnv</Arg>
<Arg>
<New class="com.enterprise.content.repository.scm.PerforceSettings">
<Set name="executablePath">${p4.exe}</Set>
<Set name="port">${p4.port}</Set>
<Set name="user">${p4.user}</Set>
<Set name="client">${p4.client}</Set>
<Set name="debug">${p4.debug}</Set>
<Set name="password">${p4.password}</Set>
<Set name="sysroot">${p4.sysroot}</Set>
<Set name="sysdrive">${p4.sysdrive}</Set>
</New>
</Arg>
</New>
</Configure>

Thanks
Tagged:
This discussion has been closed.