Hi I am facing a very small problem , but which already ate lots of my time , so here it goes, I want to specify data source name in hibernate.cfg.xml
I came across following four version, but none of them is working,
<property name="hibernate.connection.datasource">java:/comp/env/jdbc/dsname</property>
In following "/" before comp is removed
<property name="hibernate.connection.datasource">java:comp/env/jdbc/dsname</property>
Property name has been changed
<property name="connection.datasource">java:/comp/env/jdbc/dsname</property>
In following "/" before comp is removed
<property name="connection.datasource">java:comp/env/jdbc/dsname</property>
FYI, in documentation one of the version is given, and in the book other version is given..........
Any clue please which one is the correct format, if none of them is correct, then please provide the corrected one
Thanks
Sudhir
|