title: How do I integrate an MVC rest service with Spring Integration?
body: <p>My goal is to use Spring Integration to control the flow between multiple systems and add some logging and monitoring.  </p>
  
  <p>One of the systems is a RESTful MVC service.  I read the Spring Integration document here: <a href="http://static.springsource.org/spring-integration/reference/htmlsingle/#http-inbound" rel="nofollow">http://static.springsource.org/spring-integration/reference/htmlsingle/#http-inbound</a>.  There is a line here that I don't understand: </p>
  
  <blockquote>
    <p>If you are running within a Spring MVC application, then the aforementioned explicit servlet definition is not necessary. In that case, the bean name for your gateway can be matched against the URL path just like a Spring MVC Controller bean.</p>
  </blockquote>
  
  <p>Can someone provide an example of integrating a Spring MVC restful endpoint with Spring Integration?  Ideally it would be nice to reuse the mapping definitions in my Controller that I've already defined, but perhaps that isn't the intended use case?</p>