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!

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jakub Podlesak

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today