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.
No announcement yet.
Send message from Itemprocessor to jms using Spring integrationPage Title Module
In Spring Integration, endpoints are connected by channels, which are themselves first-class-citizens and entirely configurable.
Extending the previous example, you might have
A service activator is an endpoint that invokes some arbitrary code, often a POJO. If you are not familiar with this vocabulary, see http://www.eaipatterns.com/
In this way, the clent that invokes the gateway, and the service invoked by the service-activator do not have to know they are running in a messaging environment.
Now, because channels, are first class citizens in SI, you can configure what type of channel you want. By default, it will be a direct channel, in which case the service is invoked directly on the calling thread. Or, you can configure it as a jms-backed chanel, to achieve persistence, and the service will be invoked asynchronously. There are other options for channel persistence too (e.g. JDBC message store).