synchronoss / cpo-api

Class Persistence Object (CPO) Application Programming Interface (API).
GNU Lesser General Public License v2.1
3 stars 3 forks source link

tomcat changes #15

Closed sshrav closed 8 years ago

sshrav commented 9 years ago

in order to do a jndi lookup in the tomcat environment, we need to do an additional lookup on the "java:/comp/env" without which the jndi lookup fails.

mbellomo commented 9 years ago

That "java:/comp/env" string is specific to TomCat. That should be part of the whatever you're passing into cpo in the configuration file here:

<dataConfig xsi:type="jdbc:ctJdbcConfig" name="jndi">
  <metaDescriptorName>jdbcMeta</metaDescriptorName>
  <cpoConfigProcessor>org.synchronoss.cpo.jdbc.config.JdbcCpoConfigProcessor</cpoConfigProcessor>
  <jdbc:readWriteConfig>
   <jdbc:jndiName>XXXXXXXXXXXXXXX</jdbc:jndiName>
  </jdbc:readWriteConfig>
 </dataConfig>

Those Xs should have the string you want to use. CPO is container agnostic and doesn't/shouldn't have container specific logic in them.

mbellomo commented 8 years ago

Going to close this as invalid.