<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Re: Multiple phase deployments
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/thomas.diesler%40jboss.com">Thomas Diesler</a> in <i>JBoss AS7 Development</i> - <a href="http://community.jboss.org/message/566358#566358">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="color: #cc0000; font-size: 10pt; ">(12:26:09 AM) </span>bstansberry: what identifies a "set of bundles" ?<br/><span style="color: #204a87; font-size: 10pt; ">(12:26:31 AM) </span>tdiesler: I guess the ones that are part of the plan<br/><span style="color: #204a87; font-size: 10pt; ">(12:26:47 AM) </span>tdiesler: which might be flawed to start of with ;-)<br/><span style="color: #204a87; font-size: 10pt; ">(12:27:34 AM) </span>tdiesler: given that the scan can chop the physical set that the user hot-deploys in multiple scans hence multiple plans<br/><span style="color: #cc0000; font-size: 10pt; ">(12:27:53 AM) </span>bstansberry: true<br/><span style="color: #cc0000; font-size: 10pt; ">(12:28:16 AM) </span>bstansberry: plus it seems like what you want is more of a package notion like a sar or war<br/><span style="color: #cc0000; font-size: 10pt; ">(12:28:34 AM) </span>bstansberry: even if it was virtual -- something that deployers could treat as a unit<br/><span style="color: #204a87; font-size: 10pt; ">(12:28:41 AM) </span>tdiesler: lets assume the set is the plan<br/><span style="color: #cc0000; font-size: 10pt; ">(12:29:31 AM) </span>bstansberry: still the DeploymentPlan etc is an external client API<br/><span style="color: #204a87; font-size: 10pt; ">(12:29:55 AM) </span>tdiesler: in practice a user would drop a set of bundles in /deployments lets assume they all end up in a plan<br/><span style="color: #cc0000; font-size: 10pt; ">(12:30:06 AM) </span>bstansberry: ok<br/><span style="color: #204a87; font-size: 10pt; ">(12:30:10 AM) </span>tdiesler: so my DUProcessors see a set of those DUCs<br/><span style="color: #204a87; font-size: 10pt; ">(12:31:03 AM) </span>tdiesler: my workaround relies on ThreadLocal <a class="jive-link-external-small" href="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</a><br/><span style="color: #204a87; font-size: 10pt; ">(12:31:12 AM) </span>tdiesler: but shows the idea<br/><span style="color: #cc0000; font-size: 10pt; ">(12:32:42 AM) </span>bstansberry: so what you're looking for is a way to associate a set of deployments with each other<br/><span style="color: #204a87; font-size: 10pt; ">(12:33:00 AM) </span>tdiesler: yes<br/><span style="color: #062585; font-size: 10pt; ">(12:33:02 AM) </span>***bstansberry looks at where the TL is cleared<br/><span style="color: #cc0000; font-size: 10pt; ">(12:36:19 AM) </span>bstansberry: hmm, so this depends on all the deployments being installed in a batch<br/><span style="color: #cc0000; font-size: 10pt; ">(12:36:51 AM) </span>bstansberry: which is how it works now but is fragile</p><p><span style="color: #cc0000; font-size: 10pt; ">(12:37:32 AM) </span>bstansberry: so some other mechanism to know that the deployments are part of a set is better<br/><span style="color: #204a87; font-size: 10pt; ">(12:37:54 AM) </span>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<br/><span style="color: #204a87; font-size: 10pt; ">(12:40:15 AM) </span>tdiesler: yes, if I had access to the notion of DeploymentSet I could associate lifecycle with the set<br/><span style="color: #204a87; font-size: 10pt; ">(12:41:29 AM) </span>tdiesler: some other form of SetContext.start/SetContext.end would also do<br/><span style="color: #cc0000; font-size: 10pt; ">(12:42:48 AM) </span>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.<br/><span style="color: #cc0000; font-size: 10pt; ">(12:43:00 AM) </span>bstansberry: and the set could be attached to the DeploymentUnitContext<br/><span style="color: #204a87; font-size: 10pt; ">(12:43:09 AM) </span>tdiesler: right on<br/><span style="color: #cc0000; font-size: 10pt; ">(12:44:00 AM) </span>bstansberry: but something would need to trigger the fact that all the updates in the set have been processed<br/><span style="color: #204a87; font-size: 10pt; ">(12:44:06 AM) </span>tdiesler: I would need to be able to associate state with the set<br/><span style="color: #204a87; font-size: 10pt; ">(12:44:15 AM) </span>tdiesler: perhaps attach stuff to it<br/><span style="color: #cc0000; font-size: 10pt; ">(12:44:17 AM) </span>bstansberry: ok<br/><span style="color: #204a87; font-size: 10pt; ">(12:45:12 AM) </span>tdiesler: callback on the set?<br/><span style="color: #cc0000; font-size: 10pt; ">(12:45:44 AM) </span>bstansberry: yeah<br/><span style="color: #204a87; font-size: 10pt; ">(12:45:57 AM) </span>tdiesler: merci (f)</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/566358#566358">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS7 Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>