-
Dec 29th, 2012, 10:49 AM
#1
Integration between Spring MVC RESTFul service and Spring Integration
My application is currently hosting couple of RESTFul webservices using Spring 3's MVC. In my application I need to call several other components to cook up the response for a particular webservice. Currently this orchestration is being done using mule esb and apache commons chain. I am planning to introduce Spring integration to replace mule and apache chain. My question is how to incorporate it in my current architecture? More elaborately, once I get a REST request how do I create a si message and pass it to a channel? Do I need to use MessageBuilder to create the message and then use appContext.getBean(...) to get a channel and then send the message to it to start the flow from my current Controllers' code or are there any other elegant solutions?
-
Dec 29th, 2012, 02:03 PM
#2
Hi!
Good point to start is here: http://static.springsource.org/sprin...ingle/#gateway
By the way I recommend to read entire Manual to understand how to use Spring Integration in any places.
And of course take a look here http://static.springsource.org/sprin...http-namespace.
Maybe it will be able to replace your RESTFul implementation.
And also we have an open issue https://jira.springsource.org/browse/INT-2312 for more coverage of RESTFul of Spring 3 MVC.
Happy new year!
Artem
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules