<!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: Thoughts on filesystem action driven hot deployment
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/maxandersen">Max Rydahl Andersen</a> in <i>JBoss AS7 Development</i> - <a href="http://community.jboss.org/message/593368#593368">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><blockquote class="jive-quote"><p>Dimitris Andreadis wrote:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>You know, this whole idea with the marker files, I think it's just to complex for a simple deployment. If one is truly interested in deploying in a safe way, they could use the CLI, no?</p></blockquote><p>The CLI does not yet provide a way to do deployments AFAIK and it also requires a running server and seem also to not support exploded/incremental deployemnts - so its for very different usecases.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I'm waiting eagerly to learn how to use the http/native approach to do deployment since that is very useful for remote deployment - but without eploded deployments the file approach is still the best for fast feedback development.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>btw. you *always* want to deploy without intermediate scans which was the biggest pain when copying into the server - jboss tools at least made that painless with its disablement of the deployment scanner while copying.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><blockquote class="jive-quote"><blockquote class="jive-quote"><blockquote class="jive-quote"><p>Or, why not turn the problem upside down?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Treat the deployments directory exactly like in previous jboss versions (i.e. deploy something when is copied, undeploy when is removed) to retain backwards compatibility with user expectation, tools and the like.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p></blockquote>
<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p>
<p style="min-  padding: 0px;">I would love that and was my initial proposal but was told it could not be done without a lot of overhead/complexity.</p>
<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p>
<blockquote class="jive-quote"><p>In addition, if you want to go for an atomic deployment of XXX (packed or unpacked), create first a marker file XXX.skip, then copy in the deployment (packed or unpacked) and remove the XXX.skip file when done to trigger the deployment. Voila.</p></blockquote>
<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p>
<p>yup - I think that was called .donotdeploy marker in previous talks.</p>
<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p>
<blockquote class="jive-quote">To undeploy either remove directly the deployment, or if you fear it cannot be done atomically, create again a XXX.skip, remove the deployment and then remove the XXX.skip file to trigger undeployment.</blockquote>
<p style="min-  padding: 0px;">How would adding a .skip befor trying to remove the directory help ?</p>
<p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p>
<blockquote class="jive-quote"><p>For a re-deployment just touch the packed file, or the directory in the unpacked case.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>This would ensure atomic deployments, while retaining "backwards compatibility" for the ./deploy directory notion.</p></blockquote>
</blockquote>
<p>Yes I agree with this but the state changing files are still superuseful for both tools and users (i.e. .deploying, .deployed, .undeploying, .undeployed) IMO.</p>
</blockquote></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/593368#593368">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>