Skip to content

Instantly share code, notes, and snippets.

@brmeyer
Created August 27, 2014 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brmeyer/83eb2768a3e18cdeec20 to your computer and use it in GitHub Desktop.
Save brmeyer/83eb2768a3e18cdeec20 to your computer and use it in GitHub Desktop.
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="/home/brmeyer/activemqdata">
<persistenceFactory>
<kahaDB directory="/home/brmeyer/activemqdata/kahadb" />
</persistenceFactory>
<transportConnectors>
<transportConnector uri="tcp://0.0.0.0:61616" />
</transportConnectors>
</broker>
</beans>
<ResourceLink global="ConnectionFactory" name="ConnectionFactory"/>
<ResourceLink global="sramp/events/topic" name="sramp/events/topic"/>
<GlobalNamingResources>
...
<Resource physicalName="SRAMPTopic" factory="org.apache.activemq.jndi.JNDIReferenceFactory" type="org.apache.activemq.command.ActiveMQTopic" auth="Container" name="sramp/events/topic"/>
<Resource auth="Container"
name="ConnectionFactory"
type="org.apache.activemq.ActiveMQConnectionFactory"
description="JMS Connection Factory"
factory="org.apache.activemq.jndi.JNDIReferenceFactory"
brokerURL="vm://localhost?brokerConfig=xbean:activemq.xml"
brokerName="MyActiveMQBroker"
useEmbeddedBroker="true"/>
</GlobalNamingResources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment