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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -