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.| Modifier and Type | Method and Description |
|---|---|
void |
handle(jakarta.jms.Message message,
jakarta.jms.Session session)
Handles a message before proceeding.
|
void handle(jakarta.jms.Message message,
jakarta.jms.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 © 2023 ScalAgent D.T.. All rights reserved.