You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by cwash <ch...@gmail.com> on 2012/07/29 00:22:51 UTC

Start multiple brokers using maven plugin?

Sorry - if this is a stupid question here.

Is it possible to start not just a single broker but 2+ brokers in a NOB via
the  http://activemq.apache.org/maven2-activemq-broker-plugin.html ActiveMQ
Maven Plugin ?  If not, is there anything technically stopping us from doing
this?

There are some failover scenarios I would like to automate via Maven
Integration tests if possible.  We could use a stripped down version of our
larger configuration that accounts for more than a single master in the NOB.

In my mind, we would need to make sure the ports and common services don't
collide, and would potentially need to override the MQ home.

If we can't do this I have to come up with a more elaborate test setup that
involves our CI server and dependent builds.



--
View this message in context: http://activemq.2283324.n4.nabble.com/Start-multiple-brokers-using-maven-plugin-tp4654501.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Start multiple brokers using maven plugin?

Posted by Raul Kripalani <ra...@fusesource.com>.
Yes, you need to bind the plugin to the goal/phase at hand with multiple
<execution /> elements. Each execution contains its own configuration.
Take a look at
http://stackoverflow.com/questions/7239786/how-to-invoke-the-same-maven-build-twice-in-one-call
.

Hope that helps.

Regards,

*Raúl Kripalani*
*Principal Consultant | FuseSource Corp.
raul@fusesource.com | fusesource.com <http://www.fusesource.com/>
skype: raul.fuse | twitter: @raulvk <http://twitter.com/raulvk>,
@fusenews<http://twitter.com/fusenews>
*
blog: F3 - Flashes From the
Field<http://blog.raulkr.net/?utm_source=fusesourceemail&utm_medium=email&utm_campaign=fusesourcemail>
 | aboutme: http://about.me/raulkripalani

<http://twitter.com/fusenews>

On 28 July 2012 23:22, cwash <ch...@gmail.com> wrote:

> Sorry - if this is a stupid question here.
>
> Is it possible to start not just a single broker but 2+ brokers in a NOB
> via
> the  http://activemq.apache.org/maven2-activemq-broker-plugin.htmlActiveMQ
> Maven Plugin ?  If not, is there anything technically stopping us from
> doing
> this?
>
> There are some failover scenarios I would like to automate via Maven
> Integration tests if possible.  We could use a stripped down version of our
> larger configuration that accounts for more than a single master in the
> NOB.
>
> In my mind, we would need to make sure the ports and common services don't
> collide, and would potentially need to override the MQ home.
>
> If we can't do this I have to come up with a more elaborate test setup that
> involves our CI server and dependent builds.
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Start-multiple-brokers-using-maven-plugin-tp4654501.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>