This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes calling multiple implementations of a rest service based on the request header in spring 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 » Frameworks » Spring
Bookmark "calling multiple implementations of a rest service based on the request header in spring" Watch "calling multiple implementations of a rest service based on the request header in spring" New topic
Author

calling multiple implementations of a rest service based on the request header in spring

radha madaparthy
Greenhorn

Joined: May 08, 2010
Posts: 5
Hi,

I am trying to using http header to determine the implementation to invoke during runtime in my rest service. I have a situation to support multiple versions of a same service within my code. Some classess have been updated based on the new design but the older implementation has a different logic in those classes. I now want to support the old code as well as new code as deploy the service as one artifact. I am planning to introduce a new implemenattion classs which implements same service and then copy the implemenattion for the down stream classess to support the old version. Now can i use spring to do the routing to the right implemenation based on the request header value? Or are there any good alternatives for this situation?

Thanks a lot for the help
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Does this have anything to do with Struts? If not, I'll move it to the Spring forum for you.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
radha madaparthy
Greenhorn

Joined: May 08, 2010
Posts: 5
No. Can you please move this to spring forums
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: calling multiple implementations of a rest service based on the request header in spring
 
Similar Threads
How Can I use web services for the following requirements?
Spring/AspectJ vs Spring AOP
Spring 3 and REST
Testing clients of ws-secured web service
spring response attach xml header