-->
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.  [ 3 posts ] 
Author Message
 Post subject: Spring Hibernate Sessions with OpenSessionInView
PostPosted: Thu Jul 21, 2005 2:20 pm 
Newbie

Joined: Fri May 20, 2005 12:02 pm
Posts: 10
Hibernate version: 3.0.5

Name and version of the database you are using: Oracle 9.2.0.4

My application uses Cocoon 2.1.7, JDK 1.5.0_04, Spring 1.2, and Hibernate 3.0.5. Currently, the OpenSessionInView filter for Cocoon is used for each URL (i.e. the web.xml is set to filter all URLs that match /*), and a Hibernate Interceptor exists on some Service Layer objects that are called by the Presentation Layer.

I want to know if this is bad practice. I ask since I don't know if the fact that the Hibernate Interceptor and the OpenSessionInView could act on the same object and create two different Hibernate sessions. I do sometimes see a Hibernate/Spring error of associating a Proxy with two open sessions, and this is all I can think of to be the problem. Any suggestions to the contrary?

Many thanks,
Dustin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 2:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/43.html
http://www.hibernate.org/42.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 2:46 pm 
Newbie

Joined: Fri May 20, 2005 12:02 pm
Posts: 10
Beauty, thanks.


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