[jboss-dev-forums] [Design of POJO Server] - Re: profile service, farming

bstansberry@jboss.com do-not-reply at jboss.com
Thu May 29 11:05:42 EDT 2008


I'm starting to wonder whether it would make more sense to just have a JGroups Channel (actually, a more limited version of HAPartition [1]) available during the bootstrap of a clustered ProfileService.  Been looking at FileProfileRepository thinking about how a cluster-aware variant of that could be created.  But you quickly run into the DeploymentRepository.load() method which indirectly gets called during the profile service bootstrap. A proper clustered DeploymentRepository would need to reconcile at least some of its state with other cluster members during load(), but there's no Channel available. Getting around that would require hacky API changes all the way to the ProfileService.getProfile(ProfileKey key) method.

I had been thinking the services of the regular HAPartition would be made available to the profile service as part of DeploymentPhase.APPLICATION. But that just looks wrong; a service depending on its client to provide necessary core functionality.

[1] A more limited HAPartition would be a bean that implements an interface w/o ancillary HAPartition stuff like getDistributedState(). The regular HAPartition in deploy/ would probably just have this bean injected into it and delegate to it for its core functions. This way we'd avoid creating an extra Channel.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154348#4154348

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154348



More information about the jboss-dev-forums mailing list