Friday Jun 29, 2012

Jersey 2.0 Integrated into GlassFish 4.0

The latest promoted build of GlassFish 4.0 ( now contains upgraded Jersey version, 2.0-m05. Users are getting an early access to the implementation of some parts of the JAX-RS 2.0 API Early Draft Review 3. The appropriate JAX-RS bundle, version 2.0-m09 , gets bundled into GlassFish 4.0 as well.

What should work

The simple answer is: all the basic stuff. We have particularly tested the following two examples: Both above linked archives contain adjusted projects, so that resulting war files do not bundle any Jersey dependencies. Both also use Jersey 2 specific Servlet class, org.glassfish.jersey.servlet.ServletContainer, for deployment. See Martin's blog post on how to package war applications capable of running with both Jersey 1 and Jersey 2 ServletContainer classes.

What has not been covered yet

The main areas, which have not been touched yet in Jersey 2 are:
  • EJB integration
  • CDI integration
  • Validation
These are also the areas where we are going to spend the most of our cycles in the coming month.

Tuesday Jul 21, 2009

Jersey 1.1.1-ea Packages Available At GlassFish Update Center Repositories

Jersey version 1.1.1-ea was released a week ago. Paul described what's new at the released version at his blog.

Corresponding packages are now available to all GlassFish v2 users. The Jersey 1.1.1-ea packages were also published for selected GlassFish v3 based distributions and integrated into the v3 main trunk for those, who rely on the nightly builds. Enjoy!

Monday Apr 27, 2009

Jersey 1.0.3 GlassFish V3 packages split up

Jersey version 1.0.3 is now available also to GlassFish V3 Prelude users via GFv3 update center. I am writing this, because several changes happened about how things work there.

As you can see at the snapshot, the first big change relates to number of Jersey packages. Started from the 1.0.3 version, we are providing two separate packages.

We are going to integrate with GlassFish V3 bits, so that people would not need to install Jersey separately. And as we wanted to lower the Jersey footprint in GlassFish V3, we have broken the original Jersey package down into two separate modules:

  • Jersey Core
  • Jersey Examples and Documentation

The "Jersey Core" package contains OSGI modules for jersey-bundle, jettison, and jackson-asl libraries. This should be sufficient for you to deploy Jersey based web applications to GlassFish V3 Prelude without a need to bundle any Jersey related jars with your application WAR file and should be good for production.

"Jersey Examples and Documentation" package contains Jersey API javadocs and some examples. This package should be useful especially for developers, who want to learn Jersey, and see how it works before developing their own RESTful web applications. If you choose this package, the UC client will automatically install also the "Jersey core" module, and you will get installed everything you need to start up.

A rather cosmetic change happened to location, where jersey subdirectory gets installed into. It has moved from $AS_HOME/jersey to $AS_HOME/glassfish/jersey.

When upgrading from earlier versions of Jersey, you could be a bit confused with consequences of the above described changes. So if you upgraded into a newer Jersey version and try to figure out, where all Jersey examples and docs went, just install "Jersey Examples and Documentation" in addition and it should re-appear in $AS_HOME/glassfish/jersey.

Tuesday Jan 20, 2009

Prezentace projektu Metro na CZJUGu

Příští pondělí, 26.1.2009, proběhne v rámci setkání Českého JUGu přednáška Marka Potočiara o projektu Metro.

Z abstraktu přednášky vyplývá, že součástí budou i dema. Marek je psal přímo pro tuto příležitost, a myslím, že se mu velice povedla. Kromě demonstrací zaměřených přímo na SOAP ukáže mimo jiné, jak na aplikačním serveru GlassFish kombinovat SOAP a REST. Pro REST službu použije samozřejmě projekt Jersey. Jestli vás tato oblast zajímá, přijďte v pondělí v 18h na Karlovo náměstí 2, do budovy E katedry počítaču, místnosti K9.

Thursday Nov 06, 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!

Tuesday Jun 24, 2008

Jersey 0.8 Available At GlassFish Update Centers

Information on Jersey 0.8 update center module for GlassFish

[Read More]

Jakub Podlesak-Oracle


« September 2016