Why not just use SSL?

On Mon, Apr 22, 2013 at 6:39 AM, jonfrias <jon.fr...@tecnalia.com> wrote:

> 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
> message.
>
> 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
> methods:
>   * public void messageConsumed(ConnectionContext context,MessageReference
> messageReference)
>   * public void messageDelivered(ConnectionContext context,MessageReference
> 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,
>
> Jon
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-MessageConsumed-event-tp4666115.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Reply via email to