activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BenXS <>
Subject Can the same Java Bean consume from Queues or Topics? Only activemq.xml config change?
Date Fri, 13 Aug 2010 13:21:23 GMT

Assume I created successfully a Java Bean which consumes JMS msgs through an
onMessage() method from a queue.

Broker URL and queue name is defined in (Spring) XML in activemq.xml

Can I use the same (unchanged) java bean to consume jms msgs from a(nother)
topic instead from the previous queue?

As far as I can see I have simply to change the Sping XML declarations in
activemq.xml and to restart ActiveMQ. The Java Bean will listen then on a

Is this correct?

Otherwise: What must be changed in bean to switch from Queue to Topic


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message