Fast Directory Deployment in GlassFish

A River Meander

The Servlet specification describes how to deploy a Web Application as a WAR file but most AppServers, GlassFish included, support deployment from an (expanded) directory.

Directory deployment allows fast and easy detection of file changes and thus can lead to an improved deployment experience. Which is what Vance has been doing for NetBeans 6.1 and GlassFish v2.1 combination.

Check out the description of the new functionality, first through Debug Tracing and then via Some Commentary. I belive this is available now in the corresponding nightly builts, but I need to check.


It's great if the directory deployment features is improved even further!
It could be improved even further to address one of the major shortcomings of the deployment facilities in GlassfishM the lack of support for directory deployment in a cluster profile as is possible archive deployments. Archives can be deployed with a path local to the machine on which the node is running though the "--upload=false" option, directories cannot.

Posted by Jesper Söderlund on March 25, 2008 at 08:55 AM PDT #

I am glad that Vince (not Vance :-)) is doing this. When I talk to my RoR friends, they tell me that the ability to instantly see the effect of a change is a huge productivity win. With directory deployment, we can get much of the same in NB+GF. The other big help is hot-swapping code. I always run my app in the debugger during development. I then fix errors and click on the button for hot-swapping the code. More often than not, the VM will take the replacement, and I can keep working without having to restart the app.

Posted by Cay Horstmann on March 26, 2008 at 02:31 AM PDT #

Directory Deployment is a great feature of jboss. Glad to have the feature in GlassFish. In addition to that, can GlassFish be installed just by simply copying and pasting on to any directory, and started by running a start-up script? This is what I am doing with jboss. I like greenware because it is simple and for dummies...

Posted by Brian Huang on March 26, 2008 at 01:24 PM PDT #

Post a Comment:
Comments are closed for this entry.