• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Publishing web service using Spring 3

 
Himanhsu Yadav
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic