[ 
https://issues.apache.org/jira/browse/ARTEMIS-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Justin Bertram resolved ARTEMIS-607.
------------------------------------
    Resolution: Not A Bug

This is not a bug, per se. Interceptors have to be implemented for each 
protocol since interceptors intercept implementation-specific packets. The 
"interceptor" example shipped with Artemis contains an interceptor which 
intercepts org.apache.activemq.artemis.core.protocol.core.Packet objects. These 
are clearly part of the core protocol so you shouldn't expect to intercept them 
from clients using other protocols.

I recommend you open a feature request for the protocols for which you need 
interceptor support.

FWIW, this was recently discussed on the user-list as it relates to MQTT 
already.

> Interceptors don't work with non core protocols
> -----------------------------------------------
>
>                 Key: ARTEMIS-607
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-607
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 1.3.0
>            Reporter: Jiri Danek
>            Priority: Critical
>
> I followed the {{examples/features/standard/interceptor}} example and built 
> my own class that implements the Interceptor interface. I made it print a 
> message every time it is triggered. That way I know this happens. I 
> configured the broker and made the interceptor work for messages coming over 
> the core protocol.
> I then tried sending AMQP messages with 
> {{qpid-proton/examples/python/simple_send.py}} and MQTT messages with 
> https://github.com/iwanbk/nyamuk v0.2.0 and neither message triggered the 
> interceptor.
> I encountered this issue when trying to answer 
> http://stackoverflow.com/questions/38101899/intercepting-mqtt-messages-in-artemis



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to