Hi Chandru,
in your forum post you wrote that the jboss-web.xml contains the following line:
Quote:
<jndi-name>java:comp/env/myhDB</jndi-name>
Is the "h" in my
hDB just a typo in the post or may this be the reason why this is not working?
A workaround is that you configure the myDB directly in the deploy directory by a file myDB.xml that looks like this (example is for Oracle DB):
Code:
<datasources>
<local-tx-datasource>
<jndi-name>myDB</jndi-name>
<connection-url>jdbc:oracle:thin:@servername:1521:DBName</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>xxx</user-name>
<password>xxx</password>
<min-pool-size>5</min-pool-size>
<max-pool-size>20</max-pool-size>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<metadata>
<type-mapping>Oracle9i</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
Hope this helps,
Joern