Consume ActiveMQ advisory messages in tomEE mdb -
i have mdb manages consume activemq advisory messages when deployed on glassfish.
but when deploy on tomee mdb doesnt consume advisory messages. there need turn on?
@messagedriven(mappedname = "activemq.advisory.consumer.queue", activationconfig = { @activationconfigproperty(propertyname = "destinationtype", propertyvalue = "javax.jms.topic"), @activationconfigproperty(propertyname = "destination", propertyvalue = "activemq.advisory.consumer.queue.user.*") }) public class advisorymdb implements messagelistener { private final logger logger = loggerfactory.getlogger(getclass().getname()); @override public void onmessage(message message) { logger.info("onmessage() {}", message); } }
(in tomee manage produce , consume messages on these queues want advisories for)
edit: tested consume on 1 of these advisory topics standalone client , got messages expected. advisory messages sent, mdb doesnt pick them properly.
what advisory messages trying consume?
taking @ documentation here... see activemq.advisory.consumer.queue
listed meaning consumer start & stop messages on queue. target activemq.advisory.consumer.queue.user.*
, have queue called user
? single queue or there multiple queues underneath user
?
also reading doc, there seems changes on years of advisory queue names. can check activemq versions across platforms , make sure you're comparing apples apples? also, on documentation page listed, kind of wonder if of advisories disabled. doesn't list particular queue 1 can disabled, might try explicitly enabling advisories , see if helps.
Comments
Post a Comment