On Sep 26, 2007, at 11:45 AM, Paul Boyes wrote:

Thank you.  I appreciate it.  I found the following:




Looks pretty straight forward, but a build is in order.  Does that sound right to you?

that's it! although it may be rather out of date for g. 2.x.

What I would recommend doing is turning off the provided activemq-broker and activemq-ra modules and deploying your own with appropriate configuration, in particular with dependencies on all the jars you need to make amq work this way.  In trunk you can do this pretty easily as a plugin but earlier you can just deploy the plans into the running server using the console or command line deployer.

If there are hidden dependencies on the activemq-broker module (I suspect some from openejb in geronimo 2.x) you may need to include a line like


in your var/config/artifact_aliases.properties.  

I haven't actually tried this particular maneuver so there may be complications.  Feel free to ask for help :-)

You can also change the plan in the server source code and rebuild but obviously that is somewhat harder to maintain.

david jencks





From: David Jencks [mailto:david_jencks@yahoo.com]
Sent: Wednesday, September 26, 2007 7:08 AM
To: user@geronimo.apache.org
Subject: Re: ActiveMQ: Network of Brokers


I can only point you in a direction to look....


I think you need to configure the activemq broker running in geronimo using the spring (or xbean-spring) configuration rather than through gbean configuration: then you can use the sample xml the amq docs show.  IIRC there is a flag on one of the AMQ gbeans that tells it where the spring xml file is.


IIRC someone has succeeded in doing this and posted some info on the dev list in the fairly distant past.  There might be some wiki docs but I don't think so.  If you get this working and could contribute some notes on a wiki page that would be great, especially if you are using g. 2.x



david jencks


On Sep 25, 2007, at 10:56 PM, Paul Boyes wrote:



I am new to Geronimo and ActiveMQ and have been researching and playing with both.  With ActiveMQ, I really like the idea of a network of brokers.  And, of course, I like Geronimo as it provides MDB, connection management, etc… as well as all the other app server stuff.  So, I have been trying to figure out how to set up a network of brokers with Geronimo, but have not been able to figure out how to do it in both directions. 


Using the following configuration, I have run a stand alone ActiveMQ instance and been able to send messages through it to the Geronimo server but not the other way around (from the Geronimo server).



      <!-- by default just auto discover the other brokers -->

      <!--<networkConnector name="default-nc" uri="multicast://default"/>-->

      <networkConnector name="host1" uri="static://(tcp://somehost:61616)" failover="true"/>



I am looking for a way to have the ActiveMQ instance running within Geronimo to listen to other servers as well as described here (http://activemq.apache.org/networks-of-brokers.html).  Am I going about this correctly?  Is this something that can be easily done, meant to be done?  Any info would be appreciated.