-->
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: spring and long running sessions
PostPosted: Thu Sep 16, 2004 9:57 am 
Newbie

Joined: Thu Sep 16, 2004 9:03 am
Posts: 8
Short question: Has anybody used spring to allow the use of the same session among multiple HttpRequests? Any suggestions for how to best implement this?



Background:
The reason I need this is I have a large object called a Project which has many tickets (1 project to many tickets). A ticket contains a lot of user entered data. A ticket has a one to one relation ship with an Item.

Therefore if I create a new ticket and associate it with an Item, then in another session load the Project to associate the new ticket to it, any pre-existing tickets on the Project could reference the same Item as the new Ticket.
This results in a NonUniqueObjectException (because the same Item object for the new Ticket and any existing Tickets was loaded in different sessions). The only solution to this problem (aside from kludging it up) is a session which spans the entire ticket creation process.


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.