• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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!
 
Yes, my master! Here is the tiny ad you asked for:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic