These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Specifying data source
PostPosted: Wed Sep 20, 2006 9:30 am 
Regular
Regular

Joined: Mon May 08, 2006 6:00 am
Posts: 53
Location: India
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.