This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 9137
    
    9

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


[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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: calling multiple implementations of a rest service based on the request header in spring
 
It's not a secret anymore!