[Design of POJO Server] - Re: Clustered DeploymentRepository for 5.1
by emuckenhuber
"bstansberry(a)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/syste...
"bstansberry(a)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
16 years, 7 months
[Design of POJO Server] - Re: Clustered DeploymentRepository for 5.1
by bstansberry@jboss.com
"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???
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.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214244#4214244
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214244
16 years, 7 months
[Design of OSGi Integration] - Re: Runtime and bundle lifecycle/dependency resolution
by alesj
"thomas.diesler(a)jboss.com" wrote :
| I'd suggest the BundleStartStopDeployer maintains a list of unresolved bundles and tries to resolve them before bundle.start() is attempted.
|
MC already does this.
Bundle == DeploymentControllerContext.
You're missing my point.
We should make sure the Bundle only gets to BSSD if it's properly resolved.
Any other hacking/duplicating is a step in the wrong direction.
"thomas.diesler(a)jboss.com" wrote :
| We could make PackageAdmin a required service without which BundleStartStopDeployer cannot start bundles automatically.
|
I wouldn't be that strict.
Having PackageAdmin means having few more jars/bundles.
If it's there, great, if not fallback to (2) or in the worst case (3).
"thomas.diesler(a)jboss.com" wrote :
| Only if this approach fails I'd investigate (2) or (3)
Fine by me.
As long as you make it behind under nice spi/api.
e.g. BundleClassLoaderDependencyDeployer::createResolveDependencyItem() could return diff DI instance based on what is available
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214193#4214193
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214193
16 years, 7 months