-->
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: Multiple applications work on same database corrupt cache
PostPosted: Wed Jul 01, 2009 3:41 pm 
Newbie

Joined: Sat May 30, 2009 11:42 am
Posts: 15
Hi,

I have a DAL which is used in several different applications (Winforms GUI Client, Webbased Reporting tool for customers, Backend Service for several long-running operations like transcoding of audio/video files etc)

Now i am running into trouble when more then one of these is working on the same object at the same time.. For example:

Service starts encoding a file and thus changes status to "encoding", Winforms Gui does not see this change because the object is still in cache and winforms instance of the DAL does not know of any changes to this object..

I cannot evict / refresh these objects all the time since this would defeat the prupose ( and be a major performance issue) So i am trying to figure out how i could do this best ?

Should i set a sort of a "version" column on every row ? Is there a way to have a global cache where multiple instances of the same DAL on different machines can check the cache instead of each instance locally ?


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.