jingc3 wrote:
I tried :
<property name="connection.datasource">java:/TimeTracker</property>
and it did not make any difference.
I read somewhere that the hibernate application needs to be deployed as .har, not .war. jboss 4.0.1 can read from the expanded directory structure, but jboss 4.0.2 has a bug to read from the expanded deployment dir.
Do you mind to post your deployment structure for your working hibernate app?
thanks in advance
I successfully deploy our application as a war file in both JBoss 3.2.6 and 4.0.2.
mssql-ds.xml
Code:
<datasources>
<local-tx-datasource>
<jndi-name>SQLDS</jndi-name>
...
hibernate.cfg.xml
Code:
<property name="connection.datasource">java:/SQLDS</property>
When we deploy to Weblogic 8.1, we drop the "java:/" from the datasource property.