• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Publishing web service using Spring 3

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic