I need a "centralized" cache and access to it.  I was thinking of using a Singleton at 
first that could be accessed by all clients.   The singleton would be the manager of 
the cache and would be the only entry point to read and write it.  This isn't as 
simple as I thought for a myriad of reasons including the fact that all clients would 
need to "keep track" of which node was the master.

Then I thought the DistributedState service would be a good way to go.  This didn't 
pan out either for the simple fact that the DistributedState service isn't 
transactional.

I'm now off investigating the JBossCache because, again, I would like to have a shared 
data cache that all clients can access easily and not have to worry about managing 
which node is the master as well as being able to have the state managed 
transactionally.    From everything I know and have read so far, it appears the 
JBossCache is the answer.  Sound right?

In the end, what I need is a transactional cache (or gateway) for clients to access.  
The clients need to acquire a "global" lock from this cache (i.e. a counter is 
decremented), do some work and then release the lock (i.e. the counter is 
incremented).  Simple algorithm, not as simple in a clustered environment where I'd 
like to take advantage of load-balancing and fault tolerance.

Thanks,
-Ron

<a 
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826760#3826760";>View 
the original post</a>

<a 
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826760>Reply 
to the post</a>


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to