Joram 5.3.0

org.objectweb.joram.client.jms
Interface MessageInterceptor


public interface MessageInterceptor

Session level message interceptor interface. The 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 consumming a message) or OUT (when producing a message) intereceptor.


Method Summary
 void handle(javax.jms.Message pMessage, javax.jms.Session pSession)
          handles a message before proceeding.
 

Method Detail

handle

void handle(javax.jms.Message pMessage,
            javax.jms.Session pSession)
handles a message before proceeding.
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.

Parameters:
pMessage - the message to handle.
pSession - the current session of the JMS interaction

Joram 5.3.0

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved