When using JBoss with CocoBase, what are the confDataSource and jndiurl parameters used for?

Robert Castaneda

The jndiurl value is placed in the ejb-jar.xml file, inside the CocoBase environment entry and will be used by CocoBase to lookup the datasource. It will be added to the end of java:comp/env lookup as follows:

java:comp/env/%jndiurl%

Both the confDataSource and jndiurl will also be used in the generated jboss.xml file as follows:

<jboss>
<resource-managers>
<resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
<res-name>%jndiurl%</res-name>
<res-jndi-name>%confDataSource%</res-jndi-name>
</resource-manager>
</resource-managers>
</jboss>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact