Referencing JNDI data source: Tomcat 6 vs WebSphere 6.1
661599Jul 2 2010 — edited Jul 7 2010Hi,
I've noticed a problem whereby there is a difference in the way I have to specify my JNDI data source depending on the application server I deploy it on.
In Tomcat my code specifies "java:comp/env/DB_NAME" and this works fine.
This doesn't work though in WebSphere and I have to remove the "java:comp/env" prefix to get it to work.
Is there a common solution for this whereby my code/properties can specify the same JNDI value?
Thanks