Created
March 20, 2013 21:19
-
-
Save danveloper/5208548 to your computer and use it in GitHub Desktop.
ActiveMQ integration with Spring context -- Real Time Logging Project
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 = { | |
... | |
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