# Jersey RESTful Web services for GlassFish

This subirectory contains Jersey samples end javadocs.

## Javadocs

- Jersey Javadocs
- JAX-RS Javadocs

## Samples

Selection of Jersey samples are placed in the samples subdirectory. All of them were taken from Jersey project at https://jersey.dev.java.net/, and are available also on dev.java.net maven 2 repository at http://download.java.net/maven/2/com/sun/jersey/samples/jersey-samples/. They represent samples, which could be packaged as wars and easily deployed onto GlassFish instance.

### Running Samples

The following samples are included:

- helloworld-webapp
- scala-helloworld-webapp
- simple-servlet
- jmaki-backend
- bookstore
- spring-annotations

For running the examples from command line you will need maven installed. Then you can just:

    cd $AS_HOME/jersey/samples/[sample-name]
    mvn clean package
    $AS_HOME/bin/asadmin deploy target/[sample-name].war

You can also run the examples using NetBeans 6.5

## GFv3 Prelude Notes

For Jersey based web applications, which are using JSP Views feature (see the bookstore example), you will need to bundle jersey jars with the application war file. This is a known limitation, which will be addressed in the future releases.