Skip to Main Content

Java Database Connectivity (JDBC)

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!

Datasource configuration in java

SRIHARIRAO MApr 11 2014 — edited Oct 15 2014

I have one query regarding datasource configuration.

I had configured one data source in server. Where my JNDI name is "MyDS".

To acquire the data-source in JBoss environment i had used like "java:/MyDS" in persistence.xml, spring's applicationContext-acegi-security.xml even in Birt report's mybirt.rptlibrary.

But when i am running same thing in Tomcat environment, then it is showing error that unable to get the data-source. I had googled about tomcat datasource communication, where i had seen like "jdbc/MyDS"

So, my query is what is the difference between above two types of configurations? (java:/MyDS and jdbc/MyDS) and how can i use the common configuration for both the servers (tomcat6 and jboss 5.1.0.GA).

Please help me.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2014
Added on Apr 11 2014
1 comment
368 views