SyntaxHighlighter

Thursday, March 28, 2013

Spring Integration - Intercepting to Raise Events

Spring Integration - Intercepting to Raise Events

in Spring Integration, it is possible to use it to raise events to external systems and leverage all the existing components.  to do this, we can leverage the publishing-interceptor, a component in Spring Integration that uses AOP to capture a method and send off information about it.

the neat thing about this is that you can add a Message Driven Architecture layer to your existing application, allowing secondary or tertiary events to be raised from existing Spring Applications (such as audit).  this can be done either with annotations (@Publisher) or through xml

here's the link to the documentation for it

http://static.springsource.org/spring-integration/reference/html/message-publishing.html

No comments:

Post a Comment