On Tue, Apr 29, 2008 at 8:23 AM, ppr <[EMAIL PROTECTED]> wrote:
>
> I would like to use the RAR in JBoss, but with a remote ActiveMQ locate in
> localhost:62626.
>
> The activemq-ds.xml is :
> <connection-factories>
> <!--Register JMS factory for key
> jndi-web-test/jms/ActiveMQConnectionFactory-->
> <tx-connection-factory>
> <use-java-context>false</use-java-context>
>
>
> <jndi-name>${jndi-prefix}jndi-web-test/jms/ActiveMQConnectionFactory</jndi-name>
> <xa-transaction/>
> <track-connection-by-tx/>
> <rar-name>activemq-ra.rar</rar-name>
>
> <connection-definition>javax.jms.ConnectionFactory</connection-definition>
> <ServerUrl>tcp:localhost:62626</ServerUrl>
> <min-pool-size>1</min-pool-size>
> <max-pool-size>200</max-pool-size>
> <blocking-timeout-millis>30000</blocking-timeout-millis>
> <idle-timeout-minutes>3</idle-timeout-minutes>
> </tx-connection-factory>
> </connection-factories>
>
> The connexion use the local ActiveMQ in JBoss. Modifie the <ServerUrl/> with
> what I want, can't change the connexion.
>
> Is it possible to use the RAR integration to invoke a ActivieMQ present in
> another host ?
Yes, this can be achieved by changing the ServerUrl element to use a
different transport such as tcp://<hostname>:<port-number>
Bruce
--
perl -e 'print unpack("u30","D0G)[EMAIL
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/