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.