java - Set up ActiveMQ in TomEE -
how can configure tomee (conf/openejb.xml) following:
- enable activemq
- set activemq host , port
- create jms queue , topic
this directly documentation, how set jms resources. don't understand why difficult find this, found in 5 seconds. sending/receiving messages not specific tomee, can find many examples that.
<tomee> <resource id="myjmsresourceadapter" type="activemqresourceadapter"> brokerxmlconfig = broker:(tcp://somehostname:61616) serverurl = tcp://somehostname:61616 </resource> <resource id="myjmsconnectionfactory" type="javax.jms.connectionfactory"> resourceadapter = myjmsresourceadapter </resource> <container id="myjmsmdbcontainer" ctype="message"> resourceadapter = myjmsresourceadapter </container> <resource id="fooqueue" type="javax.jms.queue"/> <resource id="bartopic" type="javax.jms.topic"/> </tomee>
Comments
Post a Comment