Skip to content

Instantly share code, notes, and snippets.

@imageaid
Created December 4, 2010 23:26
Show Gist options
  • Save imageaid/728595 to your computer and use it in GitHub Desktop.
Save imageaid/728595 to your computer and use it in GitHub Desktop.
The context.xml file in Tomcat/conf that sets up the resources for ActiveMQ
<Context privileged="true" antiResourceLocking="false" antiJARLocking="false" reloadable="true">
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<Resource name="jms/flex/TopicConnectionFactory" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory" brokerURL="tcp://localhost:61616" brokerName="myBroker"/>
<Resource name="jms/announcements" type="org.apache.activemq.command.ActiveMQTopic" description="Announcements" factory="org.apache.activemq.jndi.JNDIReferenceFactory" physicalName="amq-client-announcements"/>
<Resource name="jms/messages" type="org.apache.activemq.command.ActiveMQTopic" description="Messages" factory="org.apache.activemq.jndi.JNDIReferenceFactory" physicalName="amq-client-messages"/>
<Resource name="jms/simplequeue" type="org.apache.activemq.command.ActiveMQQueue" description="my Queue" factory="org.apache.activemq.jndi.JNDIReferenceFactory" physicalName="FlexQueue"/>
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment