<div dir="ltr"><div>Quick question here:<br><br></div>Will the various add / update / remove methods have syntax for working on multiple files at once? Or will one management call be required for each request? Requiring a separate management call for each changed file might be pretty slow if the server being acted against is remote. <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 10, 2016 at 9:38 AM, Brian Stansberry <span dir="ltr"><<a href="mailto:brian.stansberry@redhat.com" target="_blank">brian.stansberry@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Emmanuel Hugonnet has been working on a long requested feature to have WildFly support "managed exploded deployments." We have a requirements analysis doc for this at <a href="https://developer.jboss.org/docs/DOC-55497" rel="noreferrer" target="_blank">https://developer.jboss.org/docs/DOC-55497</a> and I just wanted to point that out to the list so anyone interested can have a look, and comment on this thread or on the document.<br>
<br>
A managed deployment is one where the user provided content is copied by the server/host controller into its internal content repo and then thereafter that copy is what is used. I estimate that 99%+ of all zipped deployments in WildFly are managed. With an unmanaged deployment the user provides the server with the local FS path to the content and then the server directly uses that content. All exploded deployments are unmanaged, as we don't support managed yet.<br>
<br>
We propose to add 5 new operations to the deployment resource:<br>
<br>
explode (to convert and archive deployment to exploded)<br>
add-content<br>
update-content<br>
remove-content<br>
read-content<br>
<br>
There is one "nice-to-have" requirement listed on the doc where I'm increasingly thinking it needs to be a hard requirement, so thought on this are appreciated:<br>
<br>
<br>
"The explode operation can take an optional path parameter, the value of which is a path within the deployment that should be exploded.<br>
* The use case for this is scenarios like an exploded ear that contains an unexploded war, and then the user later wishes the war to be exploded.<br>
* This is much closer to a hard requirement if the nice-to-have requirement for recursively exploding is not supported.<br>
* This operation will fail if the content referred to by the path parameter is already exploded or is not a zip file.<br>
* This operation will fail if any content between the root of the deployment and the content referred to by the path parameter is an unexploded archive.<br>
* So, /deployment=foo.ear:explode(path=/thewar.war/WEB-INF/lib/thejar.jar) would fail if thewar.war hadn't previously been exploded."<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Brian Stansberry<br>
Senior Principal Software Engineer<br>
JBoss by Red Hat<br>
</font></span></blockquote></div><br></div>