mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-08 02:59:14 +00:00
Apply fix so that when using JNDI via tomcat resource it works. Replace original extract of JNDIStorable taken from Qpid, and use ActiveMQ5's as fits better to address this issue. (which primary use case is users migrating from 5.x) Refactored ActiveMQConnectionFactory to externalise and turn into reference by StringRefAddr's instead of custom RefAddr which isnt standard. Refactored ActiveMQDestinations similar Refactored ActiveMQDestination to remove redundent and duplicated name field and ensured getters still behave the same
21 lines
611 B
Plaintext
21 lines
611 B
Plaintext
# 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. |