Skip to content

Instantly share code, notes, and snippets.

@danveloper
Created March 20, 2013 21:20
Show Gist options
  • Save danveloper/5208564 to your computer and use it in GitHub Desktop.
Save danveloper/5208564 to your computer and use it in GitHub Desktop.
Spring Integration Resources Configuration -- Real Time Logging
beans = {
...
/* Attach the message adapter */
logServiceActivator(LoggingServiceActivator)
/* Create the log channel, for internal transport */
integration.channel(id: "logChannel")
/* Attach a chain to the log channel, this will delegate the message to the LoggingServiceActivator */
integration.chain("input-channel": "logChannel") {
integration."service-activator"(method: "log", ref:"logServiceActivator")
}
/* Attach the JMS channel adapter from our ActiveMQTopic "log.*" to our Spring Integration channel, "logChannel" */
jms."message-driven-channel-adapter"(id: 'logsIn', destination: 'logMessageDestination', channel: 'logChannel')
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment