This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

http inbound channel adapter in spring mvc environment

I have an application built with Spring ROO and I'm not sure of the best way to configure an http inbound channel adapter that will work alongside Spring MVC.

In the SI docs, there is a note

"If you are running within a Spring MVC application and using the BeanNameHandlerMapping, then the 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."

Application A uses SI to put a message containing a serlialized POJO onto a queue channel. An http channel adapter polls the queue and relays the message over HTTP to application B. Any exceptions from the HTTP request (such as connection failures) are diverted to an error channel which is read by a service-activator where the messages can then be put back onto the queue for resending.

The applicationContext-integration.xml file in my ROO application is very simple so far, the basics are:

Comment

it is a bit long read, but it demonstrates both things I was looking for:
1. inbound http gateway implemented through spring controller (controller populates POJO from requests and sends it to the channel through gateway)
2. inbound http adapter (sends request map into channel), followed by transformer which converts it to the POJO.