-->
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.  [ 5 posts ] 
Author Message
 Post subject: Single DB - Multiple Web App Shared Data locking design?
PostPosted: Tue May 04, 2010 4:34 pm 
Newbie

Joined: Fri Apr 16, 2010 3:27 pm
Posts: 1
Hello All,

Can anyone suggest a design approach for managing the state of a object as it is shared between two different web applications that are deployed on separate application servers but using the same database?

Scenario:
- AppA creates a request object
- AppB approves the request object
- AppA can not modify the request object if AppB is reading the object


Possible approach:
Use a "state" attribute in the object that is persisted to the DB which will be checked by both apps when reading and writing the object. Depending on the state you can read and then modify the request object.

Can anyone suggest an alternate approach? Something clever maybe with Spring/Hibernate ?

Thanks!


Top
 Profile  
 
 Post subject: Re: Single DB - Multiple Web App Shared Data locking design?
PostPosted: Mon Jul 12, 2010 3:41 am 
Newbie

Joined: Mon Jul 12, 2010 3:02 am
Posts: 4
Well I Dont know about that problem but First time I used these parameter hibernate.hbm2ddl.auto=create-drop for error appears because table exists, so I think, that parameter hibernate.hbm2ddl.auto=update will solve it.

_________________
Website Marketing New York


Top
 Profile  
 
 Post subject: Re: Single DB - Multiple Web App Shared Data locking design?
PostPosted: Mon Jul 26, 2010 3:26 am 
Newbie

Joined: Mon Jul 26, 2010 3:15 am
Posts: 4
These information which you can share is one of the great. But I used these parameter hibernate.hbm2ddl.auto=create-drop for error appears because table exists, so I think, that parameter hibernate.hbm2ddl.auto=update will solve it.

_________________
voucher codes argos


Top
 Profile  
 
 Post subject: Re: Single DB - Multiple Web App Shared Data locking design?
PostPosted: Mon Sep 06, 2010 3:49 am 
Newbie

Joined: Mon Sep 06, 2010 3:21 am
Posts: 5
Yes actually I also new to use hibernate so I dont have knowledge about it and can any one give me its manual or how to use it. because normally I use it but I dont know more about its features.

_________________
package holidays


Top
 Profile  
 
 Post subject: Re: Single DB - Multiple Web App Shared Data locking design?
PostPosted: Wed Sep 22, 2010 10:26 am 
Newbie

Joined: Wed Sep 22, 2010 10:00 am
Posts: 5
To create an error = expression takyi drop due to the presence of these parameters appears hibernate.hbm2ddl.auto use, so I think that hibernate.hbm2ddl.auto = parameter to the update may solve the problem.

_________________
live dealer casino


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