Sebastian Hauer wrote:
Hi,
I would like to use a distributed map to share state among mbean services running on different nodes in my cluster. First I thought about using org.javagroups.blocks.DistributedHashtable but that would require me to open a new Jchannel which I would rather avoid. So I looked at the code of org.jboss.chap8.ex3a.service.DistributedCacheService and org.jboss.ha.framework.server.util.DistributedTimedCachePolicy and realized that I could just use the distributed map service that jboss' partition implementation provides.
Yes - Clustering provides a replicated state service.
Alternatively you could use the new cache, which will replace that thing at some time in the future. It uses itsown channel for now, but we will make it use HAPartitionImpl (it's on the tod list).
TreeCache comes with async or sync repl plus transactions
Now my last concern would be concurrency. Is the distributed map implementation of JBoss or javagroups synchronous over the whole cluster?
No, asynchronous. In JBoss, you can choose (in HAPartitionImpl) between async or sync method calls.
-- Bela Ban http://www.javagroups.com Cell: (408) 316-4459
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user