RE: [JBoss-user] Distributed Map
Hi Bela, 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. 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). Where is this code for the new cache? Into which jboss version will it get integrated 3.2.x or only the new 4.x? 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. If I switch in HAPartitionImpl to use sync calls will this not change the overall cluster communication? If so is this save to do? BTW: maybe more javagroup and jboss related: If I make a synchronized jg call, does that mean it is guaranteed to be executed on all group members before it returns? Regards, Sebastian --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Distributed Map
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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Distributed Map
Where is this code for the new cache? Into which jboss version will it get integrated 3.2.x or only the new 4.x? It is in JBoss 4. We might backport it to 3.2.x. If I switch in HAPartitionImpl to use sync calls will this not change the overall cluster communication? If so is this save to do? Yes - you can do it on a per-call basis. BTW: maybe more javagroup and jboss related: If I make a synchronized jg call, does that mean it is guaranteed to be executed on all group members before it returns? Yes - guaranteed. Bela __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com --- 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/psa0013ave/direct;at.aspnet_072303_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user