activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BenXS <bxsto...@yahoo.co.uk>
Subject Re: How to write a java topic/queue consumer (MDB?) and deploy it INSIDE ActiveMQ?
Date Wed, 04 Aug 2010 14:48:02 GMT


Dejan Bosanac wrote:
> 
> One way to do it is to put your jar in the lib/ folder and use
> ActiveMQ Spring configuration to boot it.
> 

So ok, let's take the source from this webpage:

http://activemq.apache.org/how-should-i-implement-request-response-with-jms.html

I compiled successfully the Server and MessageProtocol class and put it into
target.jar.
As you suggested I copied the target.jar now to ActiveMQ\lib directory.

And now?

How do I exactly specify that this bean should be launched at startup of
ActiveMQ 
for listening at queue "client messages"?

Is this a suitable bean at all?
What about the main() method and the BrokerService setup?
Is this necessary/required?

But the main question again: How do I EXACTLY specify in activemq.xml
this bean?

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--tp29337194p29347185.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message