You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by wconroy <wc...@gmail.com> on 2008/10/30 16:46:45 UTC

JBoss Integration with Multiple ActiveMQ Instances

I have the requirement to run 2 activeMQ instances that look identical as far
as queue names go, but are different in that distinct applications will talk
to each of them.

I am using JBoss to create MDBs that listen to the applications and respond
with a message back to the activeMQ instance that the MDB is reading from.

I have it working with a single instance of activeMQ running.  I don't know
how I can get a second MDB up and running now and have it connect to the
second activeMQ.  In the ra.xml file, it seems like the resource can only be
configured to talk to 1 activeMQ.

Is there a suggested solution for this?  The only thing I have thought of is
creating 2 different rar's each configured to talk to a single activeMQ, but
this seems like it is not the right thing to do.

I am using JBoss4.2.2 and activeMQ 5.1.0.

Thanks,

Bo
-- 
View this message in context: http://www.nabble.com/JBoss-Integration-with-Multiple-ActiveMQ-Instances-tp20249617p20249617.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: JBoss Integration with Multiple ActiveMQ Instances

Posted by Bruce Snyder <br...@gmail.com>.
On Thu, Oct 30, 2008 at 10:12 AM, James Strachan
<ja...@gmail.com> wrote:
> but 2 brokers in the same JVM - networked together with store &
> forward makes no sense :)

My apologies if I implied that as it wasn't my intention to suggest a
network of brokers in the same JVM. My suggestion was for brokers in
separate JVMs.

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/

Blog: http://bruceblog.org/

Re: JBoss Integration with Multiple ActiveMQ Instances

Posted by James Strachan <ja...@gmail.com>.
but 2 brokers in the same JVM - networked together with store &
forward makes no sense :)

2008/10/30 Bruce Snyder <br...@gmail.com>:
> On Thu, Oct 30, 2008 at 9:46 AM, wconroy <wc...@gmail.com> wrote:
>>
>> I have the requirement to run 2 activeMQ instances that look identical as far
>> as queue names go, but are different in that distinct applications will talk
>> to each of them.
>>
>> I am using JBoss to create MDBs that listen to the applications and respond
>> with a message back to the activeMQ instance that the MDB is reading from.
>>
>> I have it working with a single instance of activeMQ running.  I don't know
>> how I can get a second MDB up and running now and have it connect to the
>> second activeMQ.  In the ra.xml file, it seems like the resource can only be
>> configured to talk to 1 activeMQ.
>>
>> Is there a suggested solution for this?  The only thing I have thought of is
>> creating 2 different rar's each configured to talk to a single activeMQ, but
>> this seems like it is not the right thing to do.
>
> If you definitely want to speak with a different broker, then I
> believe that's exactly what you must do. Each JCA resource adapter is
> designed to communicate with only one enterprise information system.
>
> I have zero detail on the design of your system, but have you
> considered just letting the applications communicate with a single
> broker and then just network two brokers together? ActiveMQ supports
> what is known as a network of brokers, i.e., multiple brokers working
> together in a federated manner. See the following page for more info:
>
> http://activemq.apache.org/networks-of-brokers.html
>
> A network of brokers forwards messages between the brokers the brokers
> based on configuration and demand for messages. This results in what
> some folks call distributed destinations.
>
> 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/
>
> Blog: http://bruceblog.org/
>



-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/

Re: JBoss Integration with Multiple ActiveMQ Instances

Posted by Bruce Snyder <br...@gmail.com>.
On Thu, Oct 30, 2008 at 9:46 AM, wconroy <wc...@gmail.com> wrote:
>
> I have the requirement to run 2 activeMQ instances that look identical as far
> as queue names go, but are different in that distinct applications will talk
> to each of them.
>
> I am using JBoss to create MDBs that listen to the applications and respond
> with a message back to the activeMQ instance that the MDB is reading from.
>
> I have it working with a single instance of activeMQ running.  I don't know
> how I can get a second MDB up and running now and have it connect to the
> second activeMQ.  In the ra.xml file, it seems like the resource can only be
> configured to talk to 1 activeMQ.
>
> Is there a suggested solution for this?  The only thing I have thought of is
> creating 2 different rar's each configured to talk to a single activeMQ, but
> this seems like it is not the right thing to do.

If you definitely want to speak with a different broker, then I
believe that's exactly what you must do. Each JCA resource adapter is
designed to communicate with only one enterprise information system.

I have zero detail on the design of your system, but have you
considered just letting the applications communicate with a single
broker and then just network two brokers together? ActiveMQ supports
what is known as a network of brokers, i.e., multiple brokers working
together in a federated manner. See the following page for more info:

http://activemq.apache.org/networks-of-brokers.html

A network of brokers forwards messages between the brokers the brokers
based on configuration and demand for messages. This results in what
some folks call distributed destinations.

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/

Blog: http://bruceblog.org/

Re: JBoss Integration with Multiple ActiveMQ Instances

Posted by James Strachan <ja...@gmail.com>.
2008/10/30 wconroy <wc...@gmail.com>:
>
> I have the requirement to run 2 activeMQ instances that look identical as far
> as queue names go, but are different in that distinct applications will talk
> to each of them.

Why not just use the same broker?

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://fusesource.com/