Hi guys,
I'm trying to setup a JNDI connection for my WAR but I'm not being able to do so. Here is what I've done:
oracle-ds.xml in default/deploy...
<datasources> <local-tx-datasource> <jndi-name>OracleDS</jndi-name> <connection-url> jdbc:oracle:thin:@sumedh:1521:sumedh </connection-url> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>system</user-name> <password>crap</password> <exception-sorter-classname> org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter </exception-sorter-class-name> </local-tx-datasource> </datasources>
<resource-ref> <description>crap</description> <res-ref-name>jdbc/Test</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref>
<resource-ref> <res-ref-name>jdbc/Test</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>OracleDS</jndi-name> </resource-ref>
Unable to get DB connection : javax.naming.NamingException: Could not dereference object {Root exception is javax.naming.NameNotFoundException: OracleDS not bound}