You sent this same message about CONNECT messages 2 weeks ago, and the
answer is the same as before.  All current releases only support
intercepting PUBLISH messages.  However, the code has been changed so all
message types are now interceptable.  If you want this functionality I
suggest you just build the master branch (i.e. using 'mvn clean install
-Prelease') and use the resulting distribution in the
artemis-distribution/target directory.


Justin

On Fri, Aug 25, 2017 at 6:46 AM, aragoubi <aymen....@gmail.com> wrote:

> I added an mqtt interceptor into my artemis broker in order to intercept
> mqtt
> client subscription:
>
>
>
> public class SimpleMQTTInterceptor implements MQTTInterceptor
> {
>         @Override
>         public boolean intercept(final MqttMessage mqttMessage,
> RemotingConnection connection) throws ActiveMQException
>         {
>                 System.out.println("MQTT Interceptor gets called ");
>
>                 if (mqttMessage instanceof MqttSubscribeMessage)
>                 {
>                         System.out.println("MQTT subscription packet get
> intercepted ");
>                 }
>                 return true;
>         }
> }
>
> My client apache paho connect to the broker via this port
> "ws://0.0.0.0:61614".
> My problem is that only message published to topics are intercepted.
> Why this doesn't intercept *SUBSCRIBE* message ?
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Artemis-Intercept-mqtt-client-subscription-tp4730005.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to