Our OSGi bundle should just be a facade on top of the Deployment.
You should be able to retrieve a bundle facade even for non OSGi deployments as well.
i.e. to a piece of OSGi code a JavaEE ear deployment should look like a Bundle.
Each deployment has its own lifecycle states controlled by the
DeploymentControllerContext.
So the mapping should look something like (pseudo code):
Bundle.start() -> DeploymentControllerContext.changeState(DeploymentStages.REAL);
Bundle.stop() -> DeploymentControllerContext.changeState(???);
I'm not sure what state stop() should move to. It will either be POST_CLASSLOADER
or DESCRIBE depending on whether Bundle.stop() should destroy the classloader.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130073#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...