Jason Greene [
http://community.jboss.org/people/jason.greene%40jboss.com] replied to the
discussion
"Thoughts on hot deployment"
To view the discussion, visit:
http://community.jboss.org/message/559865#559865
--------------------------------------------------------------
> Brian meant a different file, and they shouldn't necessarily
be poking in the data area, which I admit is not intuitive. That's a very good point.
It's also inconsistent with the exploded dir, which preserves the original. We could
alternatively leave the file there and just add the .deployed as an indicator that it was
deployed. The only side effect is that it would require a copy vs a move, but IMO not a
huge deal for zips.
If you leave the original archive in place, I think there is little point having a marker
file there hanging. Logs/console/cli should tell you if a deployment was successfull or
not and for index purposes or otherwise you can always keep state somewhere else, outside
the users view.
Unless you want to have archives in ./deploy and not wanting them to deploy? (but then
why have them there in first place)
Yes the state could be stored elsewhere,
basically a timestamp and file size should be sufficient to determine if the file has
indeed changed. It's only value with the copy approach is to provide a quick
indication that something is currently deployed.
Now, regarding exploded deployments, why not using the containing
directory to be the marker itself? "Touching" the upper level directory
conceptually is similar to touching a zipped archive. Although it's not so
straightforward to do on Windoze.
That still doesnt solve the undeploy problem,
where the content will disappear out from under the classloader and cause frameworks like
seam to fail. It also doesn't help the problem where atomic moves aren't possible
for one reason or the other.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/559865#559865]
Start a new discussion in JBoss AS7 Development at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]