users@jersey.java.net

Re: [Jersey] Regarding jersy and JAX-RS

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 22 Jul 2009 10:31:52 +0200

On Jul 22, 2009, at 9:54 AM, Sasidhar Rachuri wrote:

> Glad to find a user mailing list for JAX-RS.
>
> Can i use jerst with tomcat and jdk1.5.
> My web code (spring controllers), services etc are developed using
> jdk1.5, and are deployed in tomcat.
>

Yes. Any compliant Web container, such as Tomcat will work. Just make
sure you have the dependencies correctly defined:

https://jersey.dev.java.net/source/browse/*checkout*/jersey/tags/jersey-1.1.1-ea/jersey/dependencies.html

If you download the following simple sample:

   http://download.java.net/maven/2/com/sun/jersey/samples/helloworld-webapp/1.1.1-ea/helloworld-webapp-1.1.1-ea-project.zip

and do mvn clean install a war file will be created in the target
directory that can be deployed to a Web container.

For spring support see the following sample:

   http://download.java.net/maven/2/com/sun/jersey/samples/spring-annotations/1.1.1-ea/spring-annotations-1.1.1-ea-project.zip

and see:

   http://blogs.sun.com/enterprisetechtips/entry/jersey_and_spring
   https://jersey.dev.java.net/nonav/apidocs/1.1.1-ea/contribs/jersey-spring/com/sun/jersey/spi/spring/container/servlet/package-summary.html

Paul.

> I m planning to use RESTful web services in my application and
> planning to use jersy.
>
> Kindly let me know if this is compatible.
>
> -Regards,
> Sasi