activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Pechorin <ivan.pecho...@gmail.com>
Subject Re: JBoss 4 and ActiveMQ standalone
Date Fri, 30 Apr 2010 15:07:09 GMT
2010/4/30 ed4becky <ed@ed4becky.org>:
>
> I would like to configure an MDB running in JBoss to access a JMS message
> queue running in a standalone ActiveMQ instance.

You should configure property "ServerUrl" of ActiveMQ Resource Adapter
(RA) to connect to your standalone ActiveMQ instance.

$JBOSS_HOME/server/all/deploy/activemq-ra.rar/META-INF/ra.xml:

    <resourceadapter>
        <resourceadapter-class>org.apache.activemq.ra.ActiveMQResourceAdapter</resourceadapter-class>
        <config-property>
            <description>
              The URL to the ActiveMQ server that you want this
connection to connect to.  If using
              an embedded broker, this value should be 'vm://localhost'.
            </description>
            <config-property-name>ServerUrl</config-property-name>
            <config-property-type>java.lang.String</config-property-type>
            <config-property-value>tcp://hostname:61616</config-property-value>
        </config-property>
        ...

Mime
View raw message