activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jonfrias <>
Subject ActiveMQ events to intercept a message in a topic
Date Mon, 22 Apr 2013 13:48:58 GMT
Hi all,

I am writing because I'm implementing my own activemq-broker which
implements some feautures extra over the default version.

I'm implementing the encryptation feature to all the messages which are sent
within servicemix. To do this:

1 - I have overrided the method "preProcessDispatch". In this method I can
intercept the messages before they are sent and I encrypt the body of the

2 - I need to intercept now the messages before they are consumed by the
consumers to decrypt the body of the messages. I have tried with these
  * public void messageConsumed(ConnectionContext context,MessageReference
  * public void messageDelivered(ConnectionContext context,MessageReference

but none of them worked. I even try to write some text in the log to verify
if these methods are executed and apparently they are not.

Can anybody tell me which method I should use? Or what am I doing wrong if
the methods I have tested are correct?

Thanks a lot in advance.

Best regards,


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

View raw message