-->
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.  [ 5 posts ] 
Author Message
 Post subject: how to configure JNDI in hibernate
PostPosted: Thu Jul 05, 2007 7:26 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:46 am
Posts: 31
Hi
Can any body tell me how to configure JNDI in hibernate . and how to get the session factory using JNDI...

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 8:49 am 
Beginner
Beginner

Joined: Fri May 18, 2007 10:28 am
Posts: 48
Location: Madison, WI
Following link has a good explanation-

http://www.hibernate.org/hib_docs/refer ... ation.html

_________________
Please rate if it helped


Top
 Profile  
 
 Post subject: jndi with hibernate
PostPosted: Thu Jul 05, 2007 9:25 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:46 am
Posts: 31
Hi
I have gone through that dicument . but not got a clear idea . can anybody post some samples of configuring JNDi in hibernate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 9:36 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
JNDI is invisible to the SessionFactory. you can just configure your favorite DataSource and plug it into the SessionFactory

programatically
http://www.hibernate.org/416.html

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 05, 2007 9:58 am 
Beginner
Beginner

Joined: Thu Jan 04, 2007 5:46 am
Posts: 31
Hi
thanks for ur reply can u plz post me link regarding to configure JNDI in jboss using hibernate


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

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.