Control Message in JMS
posted 6 years ago
Well, if this is a normal JMS listener (i.e. single threaded) you can just send this message and write code to do whatever you want. This will not work in a multi threaded environment (you have no control over which messages gets processed first there), hence my ActiveMQ groups recommendation.