How can we control embedded ActiveMQ from Wildfly

32 views
Skip to first unread message

Silvio Bierman

unread,
Nov 4, 2025, 5:23:51 AMNov 4
to WildFly
Hello all,

We are using Wildfly 26. We use embedded ActiveMQ Artemis heavily to
address MDBs in our system. We have a system startup phase that could
result in the system going into some form of "maintenance" mode in which
system admins need to perform some manual tasks before the system can
resume "normal" processing and users can be serviced.

During this maintenance mode some parts of the system are unavailable or
need to be configured before they can operate correctly . Therefore we
would like to prevent the delivery of JMS messages to MDBs untill our
system decides it can proceed to normal operation mode,

What would be good approaches to achieve this?

We are thinking of having our MDBs annotated with @DeliveryActive(false)
and then call startDelivery() on them later down the road. But I am
wondering how ActiveMQ will react to this. We do not want it to fail the
JMS messages but simply want to delay their delivery.

Any ideas?

Emmanuel Hugonnet

unread,
Nov 4, 2025, 8:30:23 AMNov 4
to Silvio Bierman, WildFly
You can pause topics and queues and resume them. Thus all messages sent to the destination will be received but not delivered. When it is
resumed, delivering will occur again.
Maybe that could help with your use cae.
Cheers,
Emmanuel
Reply all
Reply to author
Forward
0 new messages