-->
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: Configuring current session context class in Hibernate 3.6
PostPosted: Tue Jan 04, 2011 8:44 pm 
Newbie

Joined: Tue Jan 04, 2011 8:16 pm
Posts: 1
Hi I am new to Hibernate.

I am using Hibernate 3.6 with Spring 3.0.5 on JBoss but I get this information whenever I navigate the pages

Quote:
throwable from unregister connection: java.lang.IllegalStateException: Trying to return an unknown connection2


From JBoss community I get the solution that I need to change the context session in Hibernate to remove the message. In my case I should configure the hibernate.current_session_context_class parameter. There is only a persistence.xml in my project and it seems the configuration is not supposed to be in that file. Where should I change the context session class in Hibernate?


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.