You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ppr <ac...@philippe.prados.name> on 2008/04/29 16:23:19 UTC

ActiveMQ in JBoss and remote connexion

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 ?

Regards

Philippe
-- 
View this message in context: http://www.nabble.com/ActiveMQ-in-JBoss-and-remote-connexion-tp16961285s2354p16961285.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: ActiveMQ in JBoss and remote connexion

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, Apr 29, 2008 at 8:23 AM, ppr <ac...@philippe.prados.name> 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)U8V4\@4VYY9&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/