Thursday Nov 06, 2008
Thursday Nov 06, 2008
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/
You will just click on the Available Add-Ons button. Then the following table should appear:
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:
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:
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!
Friday Oct 31, 2008
Ed Ort has just written me, that my tech tip on configuring JSON format in Jersey was featured on the front page of java.sun.com:
The tech tip itself is available at the enterprise tech tips blog page.
I am currently working with Martin Grebac on a better JAXB integration, so that described JSON configuration could be simplified in the future versions of Jersey.
Tuesday Jun 24, 2008
Tuesday Jun 03, 2008
Information on how to use embedded GlassFish V3 from your maven project...
Monday Jun 02, 2008
Curious on how to build a simple Jersey web application with your command line and maven? ...
[Read More]
Monday May 26, 2008
Having a JSON generating REST resource, you can consume provided
data in your web page using JavaScript pretty easily. To access data
at your own site you can obviously make a HttpRequest from JavaScript code.
To access data from another site, you will need to workaround
a cross-domain restriction somehow. Two possible approaches are described
at Dan Theurer's blog entries here and here.
In this entry i will show how to add the JavaScript representation option to your Jersey based REST resource, so that besides
{ some JSON data}
http://.../myResource.json,
myFunc({ some JSON data})
http://.../myResource.js?callback=myFunc...
[Read More]