wood burning stoves 2.0*
The moose likes Web Services and the fly likes Publishing web service using Spring 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Publishing web service using Spring 3" Watch "Publishing web service using Spring 3" New topic
Author

Publishing web service using Spring 3

Himanhsu Yadav
Ranch Hand

Joined: Sep 26, 2007
Posts: 33
I am working on Struts 2 application which has to be publish as a RESTful webservice using Spring container. I know Spring 3 supports RESTful services but this facility is tightly coupled with Spring MVC. I am confused here, how can I implement Spring RESTful when I am already using Struts 2.
Please help me. Explanation with example/tutorial will be more helpful.
Many thanks in advance.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
You can implement RESTful web services with the following frameworks:
- Apache CXF
- Restlet
- JBoss RESTeasy
- Jersey (JAX-RS reference implementation)

There are probably alternatives I have forgotten.
One of the points of introducing a RESTful web service is to decouple the service and its clients; they communicate by passing XML or JSON data over HTTP, regardless of whether they are implemented in Java, C#, C/C++, Perl etc etc. So that you are using Struts 2 to present some data that you retrieve from a RESTful web service should (hopefully) not affect the service in any way.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Publishing web service using Spring 3
 
Similar Threads
RESTful Authentication
Does Struts 2 is using IOC Concepts?
struts vs spring framework
Problem with @Transactional (Transaction is not getting rollbacked)
HTML forms