You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Mark Webb <el...@gmail.com> on 2012/06/15 21:35:15 UTC

running ActiveMQ with camel from maven

I usually use the command "mvn camel:run" to execute my camel
routes..etc in my development environment.  I have included ActiveMQ
support for my camel routing and would like to start an ActiveMQ
broker as part of my Camel routes when they start up.  Is there a way
to do this from maven or should I just embed a broker in my main
class?

I ran across this link -
http://activemq.apache.org/maven2-activemq-broker-plugin.html, but it
seems quite dated.


Thanks,
Mark

Re: running ActiveMQ with camel from maven

Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Jun 18, 2012 at 5:01 PM, Mark Webb <el...@gmail.com> wrote:

> I don't want this to be a strictly "in-JVM" broker.  I would like to
> allow external clients to connect to ActiveMQ.  Ideally I would like
> maven to start ActiveMQ, with my camel routes defined and referenced
> from an activemq.xml file.
>
>
You can start AMQ from a script it has in the bin. And it can take
parameters.
So you can start a process of that script and point to a broker XML file
that includes you Camel routes.

Starting AMQ from a script is the usual way, eg bin/activemq.
You may have to add some logic to avoid starting the broker, if its already
running etc.




>
>
> On Sun, Jun 17, 2012 at 11:28 PM, boday <be...@initekconsulting.com>
> wrote:
> > don't use the m2-amq plugin, instead just configure your test AMQ broker
> URL
> > to be "vm://localhost" (generally configured with a test context file,
> > /src/test/resources/camel-context.xml, etc.) and an embedded broker will
> be
> > started automatically.
> >
> >
> > Mark Webb wrote
> >>
> >> I usually use the command "mvn camel:run" to execute my camel
> >> routes..etc in my development environment.  I have included ActiveMQ
> >> support for my camel routing and would like to start an ActiveMQ
> >> broker as part of my Camel routes when they start up.  Is there a way
> >> to do this from maven or should I just embed a broker in my main
> >> class?
> >>
> >> I ran across this link -
> >> http://activemq.apache.org/maven2-activemq-broker-plugin.html, but it
> >> seems quite dated.
> >>
> >>
> >> Thanks,
> >> Mark
> >>
> >
> >
> > -----
> > Ben O'Day
> > IT Consultant -http://consulting-notes.com
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/running-ActiveMQ-with-camel-from-maven-tp5714563p5714598.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: running ActiveMQ with camel from maven

Posted by Mark Webb <el...@gmail.com>.
I don't want this to be a strictly "in-JVM" broker.  I would like to
allow external clients to connect to ActiveMQ.  Ideally I would like
maven to start ActiveMQ, with my camel routes defined and referenced
from an activemq.xml file.



On Sun, Jun 17, 2012 at 11:28 PM, boday <be...@initekconsulting.com> wrote:
> don't use the m2-amq plugin, instead just configure your test AMQ broker URL
> to be "vm://localhost" (generally configured with a test context file,
> /src/test/resources/camel-context.xml, etc.) and an embedded broker will be
> started automatically.
>
>
> Mark Webb wrote
>>
>> I usually use the command "mvn camel:run" to execute my camel
>> routes..etc in my development environment.  I have included ActiveMQ
>> support for my camel routing and would like to start an ActiveMQ
>> broker as part of my Camel routes when they start up.  Is there a way
>> to do this from maven or should I just embed a broker in my main
>> class?
>>
>> I ran across this link -
>> http://activemq.apache.org/maven2-activemq-broker-plugin.html, but it
>> seems quite dated.
>>
>>
>> Thanks,
>> Mark
>>
>
>
> -----
> Ben O'Day
> IT Consultant -http://consulting-notes.com
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/running-ActiveMQ-with-camel-from-maven-tp5714563p5714598.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Re: running ActiveMQ with camel from maven

Posted by boday <be...@initekconsulting.com>.
don't use the m2-amq plugin, instead just configure your test AMQ broker URL
to be "vm://localhost" (generally configured with a test context file,
/src/test/resources/camel-context.xml, etc.) and an embedded broker will be
started automatically.


Mark Webb wrote
> 
> I usually use the command "mvn camel:run" to execute my camel
> routes..etc in my development environment.  I have included ActiveMQ
> support for my camel routing and would like to start an ActiveMQ
> broker as part of my Camel routes when they start up.  Is there a way
> to do this from maven or should I just embed a broker in my main
> class?
> 
> I ran across this link -
> http://activemq.apache.org/maven2-activemq-broker-plugin.html, but it
> seems quite dated.
> 
> 
> Thanks,
> Mark
> 


-----
Ben O'Day
IT Consultant -http://consulting-notes.com

--
View this message in context: http://camel.465427.n5.nabble.com/running-ActiveMQ-with-camel-from-maven-tp5714563p5714598.html
Sent from the Camel - Users mailing list archive at Nabble.com.