GlassFish Embedded progress

Update: things have changed quite bit since I wrote this. Please check this link for up-to-date info on GlassFish Embedded.

Seen on the GlassFish forum, giving it a bit more spotlight here:

There are many ways to use GFE (Embedded GlassFish)
Here is the easiest possible way to get you started:

Get http://download.java.net/glassfish/v3-prelude/embedded/nightly/latest.jar

$ java -jar latest.jar --help

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* Welcome to Embedded GlassFish \*\*\*\*\*\*\*\*\*\*\*\*\*
\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Below are a list of valid options.

To use the longname, prepend it with ‘–‘.
To use a short name prepend it with ‘-‘.
The webapp war file names should be supplied after all the options.
You can enter as many web apps as you like.

Example to start an Embedded GlassFish Server with a web app packaged in a jar:
java -jar glassfish-embedded-all-3.0-Prelude-SNAPSHOT.jar myapp.war

Same example but listen at port 80 instead of the default 8888
java -jar glassfish-embedded-all-3.0-Prelude-SNAPSHOT.jar -p 80 myapp.war

Description Long Name Short Name Default Required

HTTP Port –port -p 8888 true
Filesystem Installation Directory –installDir -d false
Filesystem Instance Directory –instanceDir -i false
domain.xml filename or URL –xml -x false
Admin HTTP –adminport -q 4848 true
JMX System Connector Port –jmxport -j 8686 true
Help –help -h false true
Create the server and then exit. –create -c false true
Verbose Mode –verbose -v true true
Send logging to instance-root/logs/server.log –log -l true true
Automatically delete Filesystem –autodelete -a true true

Looking at the forum, blogs, and people already using it, there is a lot of interest for this new feature in GlassFish v3 (still in development) and I would encourage you to keep sending requirements and bug reports, ideally here but sharing them on the mailing list of forum also works.

Author: alexismp

Google Developer Relations in Paris.