Closed sshrav closed 8 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.
Going to close this as invalid.
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.