activemq-artemis/examples/features/sub-modules/tomcat
Clebert Suconic 516b1a1b9f [maven-release-plugin] prepare for next development iteration 2019-03-14 12:41:04 -04:00
..
src NO-JIRA build fixes 2018-02-21 11:06:25 -06:00
README ARTEMIS-1516 - Ensure JNDI via Tomcat Resource works 2017-12-19 09:20:35 -05:00
pom.xml [maven-release-plugin] prepare for next development iteration 2019-03-14 12:41:04 -04:00

README

# Apache ActiveMQ Artemis Tomcat Integration JNDI Resources Sample

This is a Sample Tomcat application showing JNDI resource in tomcat context.xml for ConnectionFactory 
and Destination for Apache ActiveMQ Artemis.

The sample context.xml used by the tomcat in this example can be found under:
/src/tomcat7-maven-plugin/resources/context.xml

To run 

start Apache ActiveMQ Artemis on port 61616
 
then

mvn clean install tomcat7:exec-war

then to send message 

http://localhost:8080/tomcat-sample/send

this will cause a "hello world" message to send, and the consumer should consume and output it to sysout.