[jboss-dev-forums] [JBoss AS7 Development] - Re: Multiple phase deployments

Thomas Diesler do-not-reply at jboss.com
Wed Oct 13 18:49:19 EDT 2010


Thomas Diesler [http://community.jboss.org/people/thomas.diesler%40jboss.com] created the discussion

"Re: Multiple phase deployments"

To view the discussion, visit: http://community.jboss.org/message/566358#566358

--------------------------------------------------------------
(12:26:09 AM) bstansberry: what identifies a "set of bundles" ?
(12:26:31 AM) tdiesler: I guess the ones that are part of the plan
(12:26:47 AM) tdiesler: which might be flawed to start of with ;-)
(12:27:34 AM) tdiesler: given that the scan can chop the physical set that the user hot-deploys in multiple scans hence multiple plans
(12:27:53 AM) bstansberry: true
(12:28:16 AM) bstansberry: plus it seems like what you want is more of a package notion like a sar or war
(12:28:34 AM) bstansberry: even if it was virtual -- something that deployers could treat as a unit
(12:28:41 AM) tdiesler: lets assume the set is the plan
(12:29:31 AM) bstansberry: still the DeploymentPlan etc is an external client API
(12:29:55 AM) tdiesler: in practice a user would drop a set of bundles in /deployments lets assume they all end up in a plan
(12:30:06 AM) bstansberry: ok
(12:30:10 AM) tdiesler: so my DUProcessors see a set of those DUCs
(12:31:03 AM) tdiesler: my workaround relies on ThreadLocal  http://github.com/jbosgi/jboss-as/blob/d853975467b33a836ac77a0f9e22976ac5bfa836/osgi/src/main/java/org/jboss/as/osgi/deployment/OSGiDeploymentService.java http://github.com/jbosgi/jboss-as/blob/d853975467b33a836ac77a0f9e22976ac5bfa836/osgi/src/main/java/org/jboss/as/osgi/deployment/OSGiDeploymentService.java
(12:31:12 AM) tdiesler: but shows the idea
(12:32:42 AM) bstansberry: so what you're looking for is a way to associate a set of deployments with each other
(12:33:00 AM) tdiesler: yes
(12:33:02 AM) ***bstansberry looks at where the TL is cleared
(12:36:19 AM) bstansberry: hmm, so this depends on all the deployments being installed in a batch
(12:36:51 AM) bstansberry: which is how it works now but is fragile
(12:37:32 AM) bstansberry: so some other mechanism to know that the deployments are part of a set is better
(12:37:54 AM) tdiesler: yes, the TL counts them up when the services are created and down when they got installed/failed. If there are no more pending it starts the installed deployments
(12:40:15 AM) tdiesler: yes, if I had access to the notion of DeploymentSet I could associate lifecycle with the set
(12:41:29 AM) tdiesler: some other form of SetContext.start/SetContext.end would also do
(12:42:48 AM) bstansberry: I'll think about how the DeploymentSet could be managed. The ServerDeploymentManager knows there is a plan, so could associate a DeploymentSet with each individual update.
(12:43:00 AM) bstansberry: and the set could be attached to the DeploymentUnitContext
(12:43:09 AM) tdiesler: right on
(12:44:00 AM) bstansberry: but something would need to trigger the fact that all the updates in the set have been processed
(12:44:06 AM) tdiesler: I would need to be able to associate state with the set
(12:44:15 AM) tdiesler: perhaps attach stuff to it
(12:44:17 AM) bstansberry: ok
(12:45:12 AM) tdiesler: callback on the set?
(12:45:44 AM) bstansberry: yeah
(12:45:57 AM) tdiesler: merci (f)
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/566358#566358]

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20101013/759f243a/attachment.html 


More information about the jboss-dev-forums mailing list