aspose file tools*
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: 8997
    
    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 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