开发者

How to use an external instance of ActiveMQ with OpenEJB?

开发者 https://www.devze.com 2023-01-18 23:51 出处:网络
how ca开发者_开发问答n I configure OpenEJB to work with an external instance of ActiveMQ? We already tried the configuration on this link http://openejb.apache.org/3.0/jms-resources-and-mdb-container

how ca开发者_开发问答n I configure OpenEJB to work with an external instance of ActiveMQ?

We already tried the configuration on this link http://openejb.apache.org/3.0/jms-resources-and-mdb-container.html but it did'nt work at all.

What should we do?


Try following in your openejb.xml:

<openejb>
    <Resource id="MyJmsResourceAdapter" type="ActiveMQResourceAdapter">
        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"/>
</openejb>

Taken from this doc

0

精彩评论

暂无评论...
验证码 换一张
取 消