Created
March 20, 2013 21:20
-
-
Save danveloper/5208564 to your computer and use it in GitHub Desktop.
Spring Integration Resources Configuration -- Real Time Logging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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