-->
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.  [ 2 posts ] 
Author Message
 Post subject: 2 User on a web application scenario...
PostPosted: Mon Jul 03, 2006 10:44 am 
Newbie

Joined: Wed Mar 15, 2006 3:20 pm
Posts: 7
Hi,

This is more of an advice question more than a problem. Here is my scenario:

- A web application with 2 users logged in...

- Both users have accessed the same object from the database after logging in at around the same time.

- User A decides to change the "status" parameter of the object.

- So now User B has incorrect data on his page as he hasn't refreshed the page yet.

- User B now decides to do the same and change the "status" parameter to something else.

This results in User B overwriting what User A specified initialy.

What can I do to combat this?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 03, 2006 12:10 pm 
Beginner
Beginner

Joined: Wed Jun 21, 2006 10:08 am
Posts: 26
Versioning.

There are a few strategies described in chapter 11 I believe of the documentation. It's the classic concurrency web app issue.

Essentially, you tell your mapping file this object will be versioned. Then you add a <version> tag to it. The documentation describes it in more details and I know there are a few posts floating around here with more detail.

_________________
- Jonathan


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