My SI setup is quite minimal so far and consists of:
Application A ( A Java application running as a background daemon process)
Application B ( A Spring ROO Web application )
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:
Code:
<channel id="myChannel" />
<service-activator input-channel="myChannel" ref="myService"
method="myServiceMethod" />
<beans:bean class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping" />
<beans:bean class="org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter" />
<http:inbound-channel-adapter id="httpEndpoint" name="/integration/httpEndpoint" channel="myChannel" supported-methods="POST" />
Hope that helps.
Jon