| 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
Bartender
Joined: Oct 04, 2006
Posts: 2193
|
|
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
|
 |
 |
|
|
subject: Publishing web service using Spring 3
|
|
|