activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: How to write a java topic/queue consumer (MDB?) and deploy it INSIDE ActiveMQ?
Date Wed, 04 Aug 2010 07:16:56 GMT
One way to do it is to put your jar in the lib/ folder and use
ActiveMQ Spring configuration to boot it.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net



On Tue, Aug 3, 2010 at 6:07 PM, BenXS <bxstover@yahoo.co.uk> wrote:
>
> I would like to write a small java program (something like a
> Bean/MessageDrivenBean) and deploy it INSIDE the ActiveMQ MessageBroker.
>
> This (MD)Bean should NOT
> - use an embedded ActiveMQ Broker
> and NOT
> - run outside ActiveMQ (e.g. on a separate application server).
>
> Instead the java prgm should be automatically activated when ActiveMQ is
> started.
>
> I wrote the java program already as a stand-alone program outside of
> ActiveMQ with statements like
>
> topicConnectionFactory = new
> ActiveConnectionFactory("tcp://localhost:61616");
>
> but don't know how to let it run together and under the control of ActiveMQ.
>
> How can I do this?
> Is there somewhere a tutorial and sample and guide how to deploy it?
>
> Thank you
> Ben
> --
> View this message in context: http://old.nabble.com/How-to-write-a-java-topic-queue-consumer-%28MDB-%29-and-deploy-it-INSIDE-ActiveMQ--tp29337194p29337194.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
View raw message