The Source for Java Technology Collaboration

Home » java.net Forums » Java Web Services and XML » Java WS & XML Community News

Thread: Restful webservice in java

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is not answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Jan 13, 2009 11:16 PM by: kuysal Threads: [ Previous | Next ]
thamizh

Posts: 9
Restful webservice in java
Posted: Jan 12, 2009 11:42 PM
 
  Click to reply to this thread Reply

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

ddmarx

Posts: 6
Re: Restful webservice in java
Posted: Jan 13, 2009 7:11 AM   in response to: thamizh
 
  Click to reply to this thread Reply

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.

kuysal

Posts: 1
Re: Restful webservice in java
Posted: Jan 13, 2009 11:16 PM   in response to: thamizh
 
  Click to reply to this thread Reply

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




 XML java.net RSS