Interceptors with Solace JMS

marc
marc Member, Administrator, Moderator, Employee Posts: 695 admin
edited May 25 in Tips and Tricks #1

I just wanted to highlight a new feature that was added to Solace JMS v10.14.0.

The API now allows for "pre-send" and "pre-receive" interceptors (AKA hooks). This allows a developer to implement common logic in one place and add it into the sending/receiving of multiple apps. A common use case for this would be for logging or handling security concerns.


Check out the docs for examples!

* Pre-Send Interceptors implement MessageProducerInteceptor and activate the interface using SupportedProperty.SOLACE_SOLACE_JMS_MESSAGE_PRODUCER_INTERCEPTOR_CLASS_NAME

https://docs.solace.com/API/Solace-JMS-API/Sending-Messages.htm?Highlight=sending%20messages

* Pre-Receive Interceptors implement MessageReceiverInterceptor and active the interface using SupportedProperty.SOLACE_JMS_MESSAGE_CONSUMER_INTERCEPTOR_CLASS_NAME

https://docs.solace.com/API/Solace-JMS-API/Receiving-Messages.htm?Highlight=receiving%20messages


Hope that helps some folks out :)

Tagged: