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.

Make 'emailChannel' a publish-subscribe channel and subscribe another endpoint (e.g. <service-activator/>) to it.

The subscribers will be invoked in the order they appear in the configuration file, but I prefer to always add an 'order' attribute to make it clear (e.g. ob adapter order="1", service-activator order="2" will ensure the adapter is always called before the sa, regardless of where their configuration resides).

If the mail send fails, the second endpoint won't be invoked and the exception will be thrown back to the caller, or sent to the errorChannel if so configured.