public interface MessageInterceptor
MessageInterceptor
should be implemented by any class whose
instances are intended to intercept either or both following operations within
a JMS Session
:
The interceptor
can be attached to a JMS Session
through configuration (see joramAdmin.xml
) as IN
when consuming a message or OUT
when producing a message)
interceptor.void handle(Message message, Session session)
By convention, the implementation can modify the original message or the current
runtime context, and return no out
value. It also avoids to throw any
exception within this method.
message
- the message to handle.session
- the current session of the JMS interactionCopyright © 2016 ScalAgent D.T.. All Rights Reserved.