You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Paul Boyes <pa...@gridnetworks.com> on 2007/09/26 07:56:59 UTC

ActiveMQ: Network of Brokers

Hello,

 

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

 

    <networkConnectors>

      <!-- 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"/>

    </networkConnectors>

 

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.

 

Thanks,


Paul

 


RE: ActiveMQ: Network of Brokers

Posted by Paul Boyes <pa...@gridnetworks.com>.
Thanks.  I greatly appreciate it.  I am going to give it a go as well as
maybe just having an instance of ActiveMQ running outside of Geronimo.

 

 

 

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

 

 

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





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

 

https://issues.apache.org/jira/browse/GERONIMO-2918?page=com.atlassian.j
ira.plugin.system.issuetabpanels:all-tabpanel
<https://issues.apache.org/jira/browse/GERONIMO-2918?page=com.atlassian.
jira.plugin.system.issuetabpanels:all-tabpanel> 

 

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

 

org.apache.geronimo.configs/activemq-broker//car=com.myco/myamq-broker/1
.0/car

 

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.

 

thanks

david jencks

	 

	Thanks,

	
	Paul

	 

	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

	 

	thanks

	david jencks

	 

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

	
	
	
	

	Hello,

	 

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

	 

	    <networkConnectors>

	      <!-- 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"/>

	    </networkConnectors>

	 

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

	 

	Thanks,

	
	Paul

	 

	
	
	
	

	 

	
	
	

 


Re: ActiveMQ: Network of Brokers

Posted by David Jencks <da...@yahoo.com>.
On Sep 26, 2007, at 11:45 AM, Paul Boyes wrote:

> Thank you.  I appreciate it.  I found the following:
>
>
>
> https://issues.apache.org/jira/browse/GERONIMO-2918? 
> page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>
>
>
> 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

org.apache.geronimo.configs/activemq-broker//car=com.myco/myamq- 
broker/1.0/car

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.

thanks
david jencks
>
>
> Thanks,
>
>
> Paul
>
>
>
> 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
>
>
>
> thanks
>
> david jencks
>
>
>
> On Sep 25, 2007, at 10:56 PM, Paul Boyes wrote:
>
>
>
>
> Hello,
>
>
>
> 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).
>
>
>
>     <networkConnectors>
>
>       <!-- 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"/>
>
>     </networkConnectors>
>
>
>
> 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.
>
>
>
> Thanks,
>
>
> Paul
>
>
>
>
>
>
>
>
>


RE: ActiveMQ: Network of Brokers

Posted by Paul Boyes <pa...@gridnetworks.com>.
Thank you.  I appreciate it.  I found the following:

 

https://issues.apache.org/jira/browse/GERONIMO-2918?page=com.atlassian.j
ira.plugin.system.issuetabpanels:all-tabpanel

 

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

 

Thanks,


Paul

 

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

 

thanks

david jencks

 

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





Hello,

 

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

 

    <networkConnectors>

      <!-- 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"/>

    </networkConnectors>

 

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

 

Thanks,


Paul

 





 


Re: ActiveMQ: Network of Brokers

Posted by David Jencks <da...@yahoo.com>.
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

thanks
david jencks

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

> Hello,
>
>
>
> 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).
>
>
>
>     <networkConnectors>
>
>       <!-- 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"/>
>
>     </networkConnectors>
>
>
>
> 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.
>
>
>
> Thanks,
>
>
> Paul
>
>
>
>