Skip to main content

Restful webservice in java

2 replies [Last post]
thamizh
Offline
Joined: 2005-11-25

Hi All,

I want to build (demo) a restful web service in java. To achieve this from where i need to start?

What are the things to be downloaded from java web site?

Can i deploy my developed web service in plain tomcat web server?

Do i need to configure anything in web.xml?

I have such basic questions with me. Can any one help me to progress?

Thanks,
Thamizharasu S

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kuysal
Offline
Joined: 2005-11-24

I suggest you download netbeans 6.5 and do the following tutorial
http://www.netbeans.org/kb/docs/websvc/rest.html

ddmarx
Offline
Joined: 2007-08-17

You'll probably want to use a library such as the JSR 311 reference implementation Jersey (https://jersey.dev.java.net/). Jersey's Getting Started page (https://jersey.dev.java.net/use/getting-started.html) is a useful starting point for using Jersey. Other good resources for building REST applications with Java include Sun's RESTful Web Services (http://java.sun.com/developer/technicalArticles/WebServices/restful/), REST for Java Developer's (http://www.javaworld.com/javaworld/jw-10-2008/jw-10-rest-series-1.html), and Restlet for the Weary (http://www.javaworld.com/javaworld/jw-12-2008/jw-12-rest-series-2.html). Restlet (http://www.restlet.org/) is another library that one could use to implement a Java-based REST web service.