Scattered War in Embedded GlassFish
Wednesday Oct 29, 2008
Embedded GlassFish project has been making steady progress since Kohsuke and Arun blogged about it. Byron has been working actively on this project. If you missed those earlier announcements, here is the scoop....
| You can now start GlassFish within an existing JVM. How cool is that? |
Development Status
The promoted builds started to show up lately. I took the latest promoted build (b02) and played with it. The latest APIs source are available here.
ScatteredWar
One of the new interesting feature is scattered war where a war file can be literally scattered. One can provide path to the resources, web.xml, and classes. This can come in handy during development where user may not have the classes, resources, etc. packaged as a war file. Here is the constructor signature of the class.
|
|
I wrote a very simple class to test the scattered war feature.
|
|
I ran the test client using the following...
|
|
The server started quickly on my two year old MacBook Pro (2.16 GHz Intel Core Duo with 1 GB memory).
|
|
On the browser, I logged on to the application context root, localhost:8080/hello, and the application loaded as expected.
I am looking forward to the future builds of Embedded GlassFish.
References
- Embedded GlassFish OnePager
- Embedded GlassFish Project
- Embedded GlassFish Downloads (Promoted Builds)
Tags: embedded embedded-glassfish glassfish scattered v3 war












Nice blog!
Thanks for the post Nazrul. I think we'll be amaze...