Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Referencing JNDI data source: Tomcat 6 vs WebSphere 6.1

661599Jul 2 2010 — edited Jul 7 2010
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 4 2010
Added on Jul 2 2010
4 comments
630 views