Package org.objectweb.joram.client.jms
Interface MessageInterceptor
-
public interface MessageInterceptorSession level message interceptor interface. TheMessageInterceptorshould be implemented by any class whose instances are intended to intercept either or both following operations within aJMS Session: Theinterceptorcan be attached to aJMS Sessionthrough configuration (seejoramAdmin.xml) asINwhen consuming a message orOUTwhen producing a message) interceptor.- Author:
- benammoura
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(Message message, Session session)Handles a message before proceeding.
-
-
-
Method Detail
-
handle
void handle(Message message, Session session)
Handles a message before proceeding.By convention, the implementation can modify the original message or the current runtime context, and return no
outvalue. It also avoids to throw any exception within this method.- Parameters:
message- the message to handle.session- the current session of the JMS interaction
-
-