• REST
    November 6, 2008

Jersey 1.0 Available on GlassFish V3 Prelude Update Center

Today, GlassFish V3 Prelude, was launched.
As Paul has written, Jersey 1.0 is part of the ensemble, and I would like to show, how to get JAX-RS and Jersey support installed on it.

Jersey package is available on GlassFish V3 Prelude update center, which is easily accessible from
GlassFish admin console. After you start your GlassFish instance, the default location for the admin console is http://localhost:4848/

GlassFish V3 Prelude Admin Console Snapshot

You will just click on the Available Add-Ons button. Then the following table should appear:

GlassFish V3 Prelude Update Center Client Snapshot

Select Jersey package there and click on the Install button.
You will need to confirm your selection and also agree with the provided license.
Then after a while, Jersey package will be installed:

GlassFish V3 Prelude Update Center Jersey Package Installed Snapshot

In order for changes to take effect, you will now need to restart your GlassFish instance.

Besides Jersey 1.0 modules, the package will also install some additional samples
and docs. Check your $AS_HOME/jersey/README.html for further details.
The important thing is, that:

Now you do not need to bundle Jersey jars with your webapp any more!

And indeed, if you go to $AS_HOME/jersey/samples/helloworld-webapp
and try

mvn clean package

you will see, that the resulting target/helloworld-webapp.war has only about 6kB!

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.