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