-->
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.  [ 4 posts ] 
Author Message
 Post subject: SessionFactoryObjectFactory: Not binding factory to JNDI
PostPosted: Thu Apr 07, 2005 12:39 pm 
Regular
Regular

Joined: Fri Mar 04, 2005 1:33 pm
Posts: 65
Location: U.K.
Hi All,

I am using Hibernate 2.1. I get following message right after the EAR file is deployed and when I access first database transaction:

INFO: CORE3282: stdout: 32657 [service-j2ee] INFO net.sf.hibernate.impl.SessionFactoryObjectFactory
- Not binding factory to JNDI, no JNDI name configured

I tried to put jta.jar in project's classpath but it did not work. Does anyone experienced this before ?

Thanks
Ron


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 3:27 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
Give your sessionfactory a name in the configuration file (assuming you are using xml). e.g.
Code:
<session-factory
name="java:comp/env/hibernate/SessionFactory">


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 08, 2005 3:48 pm 
Regular
Regular

Joined: Fri Mar 04, 2005 1:33 pm
Posts: 65
Location: U.K.
Thanks for the reply ...

Can u please let me know what is the name and value, u r asking me to add ?
Yes, I am using XML. I understand that value is "java:comp/ ..." but what is the name os the property ?

Thanks
Ron


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 09, 2005 6:32 am 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
That is up to you - the session factory will be bound to this name and you can look it up in the future using the name that you choose.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.