Configuring ActiveMQ in TomEE

How to set up TomEE (conf / openejb.xml) like this:

  • Enable ActiveMQ
  • Set ActiveMQ Host and Port
  • Create JMS queue and topic
+3


source to share


1 answer


This is directly from the documentation on how to set up JMS resources. I don't understand why it was difficult for you to find this, I found it after 5 seconds. Sending / receiving messages is not TomEE specific, you can find many examples for this.



<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>

      

+3


source







All Articles