Skip to content

Instantly share code, notes, and snippets.

@danveloper
Created March 20, 2013 21:19
Show Gist options
  • Save danveloper/5208548 to your computer and use it in GitHub Desktop.
Save danveloper/5208548 to your computer and use it in GitHub Desktop.
ActiveMQ integration with Spring context -- Real Time Logging Project
beans = {
...
xmlns amq:"http://activemq.apache.org/schema/core"
/* Establish the broker */
amq.broker(useJmx: false, persistent: false) {
amq.transportConnectors() {
amq.transportConnector(uri: "tcp://localhost:61616")
}
}
/* Create the caching connection factory */
amqConnectionFactory(ActiveMQConnectionFactory) {
brokerURL = "vm://localhost"
}
connectionFactory(CachingConnectionFactory) {
targetConnectionFactory = ref('amqConnectionFactory')
sessionCacheSize = 10
cacheProducers = false
}
/* Construct the JMS topic destination */
logMessageDestination(ActiveMQTopic, "log.*")
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment