[jboss-dev-forums] [Design of POJO Server] - Re: Clustered DeploymentRepository for 5.1
emuckenhuber
do-not-reply at jboss.com
Mon Mar 2 12:19:55 EST 2009
"bstansberry at jboss.com" wrote : "emuckenhuber" wrote : I've put an example (untested) of an ImmutableProfile in org.jboss.system.server.profile.repository in case you are interested...
| | So i basically created basic abstraction on top of the deploymentRepository, so that it can be used by those two.
|
| I'm not seeing it???
|
https://svn.jboss.org/repos/jbossas/trunk/system/src/main/org/jboss/system/server/profile/repository/AbstractImmutableProfile.java
"bstansberry at jboss.com" wrote :
| anonymous wrote : So what i would like to do is that only for MutableProfiles a deploymenRepository is required (because of the DeploymentManager). For an immutable profile this is therefore not needed. So we would also have some different implementations of a Profile then.
| | But i'm not really sure how this would affect your work?
|
| Could be trouble. What "mutable" means is still pretty unclear. But a twist a clustered repository is adding is the fact that a profile that doesn't change after the server starts can still change as part of the startup process. That is, a node that's been offline synchronizes its content with the cluster as part of startup.
True, mutable is not really clear. But basically it's the ability to add and remove contents.
Furthermore it implies that hot-deployment could be possible.
But i don't think a deploymentRepository is required for all profiles (e.g. the bootstrap profile, or in future most of the xml defined profiles).
Also the root profile basically just has some dependencies.
Most probably the ImmutableDeploymentRepository should be renamed to NoHotDeploymentRepository and the MutableRepository to HotDeploymentRepository :)
Both should somehow support addDeploymentContent, as you might want to add a deployer - although there is no hot-deployment scanning.
I mean in the end it's then depending on your implementation what it should support and if it uses a deploymentRepository.
Just that the isMutable() is used by the DeploymentManager to determine which profiles are a possible target to deploy content to.
But i don't think i have time to do that for 'Beta1', but most probably for CR1.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214248#4214248
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214248
More information about the jboss-dev-forums
mailing list