jQuery in Action, 2nd edition*
The moose likes Web Services and the fly likes What things are required to develope JAX-Rs  application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "What things are required to develope JAX-Rs  application" Watch "What things are required to develope JAX-Rs  application" New topic
Author

What things are required to develope JAX-Rs application

navneet rajput
Greenhorn

Joined: Sep 01, 2008
Posts: 14
Hi All,

I have just started working with JAX-Rs web services.
I am trying to build one sample application using JAX-RS but I am not able to find out starting point for the same.

Is any one please help me for which jar's and all I need to import in my eclipse project for running REST application smoothly.
Any kind of help or pointers will be appreciated.


Thanks,
Navneet
Sanghmitra Adhage
Greenhorn

Joined: Jun 26, 2009
Posts: 16
See if you find below information useful:

For basic information on REST Services -
http://java.sun.com/developer/technicalArticles/WebServices/restful/

I have tried Jersey for RESTful webservices once, which is easy to learn, implement and maintain. But you need to analyse it very well for your application. Links:
http://java.sun.com/javaee/6/docs/tutorial/doc/giepu.html
https://jersey.dev.java.net/use/getting-started.html
Lalit Bhatt
Ranch Hand

Joined: Dec 27, 2007
Posts: 69

Rest is a style of webservice when you deal directly with XML. A basic requirement for building a rest service is:
- A servlet which can handle http request.
- XML parser which can read the incoming XML messages and create response XML.


Java-JavaEE Hibernate Spring Software Development Business Process Analysis
navneet rajput
Greenhorn

Joined: Sep 01, 2008
Posts: 14
Thanks for reply Sanghmitra.

Actually,When I am trying to import following packages

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;

Then compiler is not able to find them.
so is there any specific library or jars I need to import.

Thanks in advance,
Sanghmitra Adhage
Greenhorn

Joined: Jun 26, 2009
Posts: 16
Hmm.. they are part of the JSR library... Normally when I have problem with imports, I use jarFinder.com :-)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What things are required to develope JAX-Rs application