Look at the BrokerFilter and BrokerPlugin (plugin is a factory for filter). 
It may be possible to customize the solution this way.

Another possibility - wrap the ActiveMQ objects (Connection Factory,
Session, etc) with your own interceptors that delegate all of the calls to
the ActiveMQ versions and modify the calls where-needed.

Honestly though, the best route is to accept the challenge and rework the
code.  I recommend adding some means to determine the prefered value -
perhaps from configuration - so that future changes can be made at a single
point in the code.

The code was written in a way that's specific to IBM MQ and does not apply
to ActiveMQ.  Work-arounds add complexity to the code that is hard to
understand and maintain.



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Default-behavior-of-ActiveMQ-Queue-sender-when-Delivery-Mode-is-set-to-1-tp4690527p4690559.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to