activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@redhat.com>
Subject Re: [Artemis] Getting client username when intercepting MqttSubscribeMessage
Date Tue, 29 Aug 2017 17:43:59 GMT
> Could I add this by changing the Artemis project code ?

No, I don't believe so.  MQTT adheres to a specification and that simply
doesn't include user details in the SUBSCRIBE message.  No amount of
changing the broker will alter that fact.


Justin

On Tue, Aug 29, 2017 at 12:42 PM, Justin Bertram <jbertram@redhat.com>
wrote:

> Since a SUBSCRIBE message doesn't contain details about the user then one
> possible solution is to record that information when intercepting the
> CONNECT message and then correlate that using the ID from the
> org.apache.activemq.artemis.spi.core.protocol.RemotingConnection object
> (i.e. using getID()).
>
>
> Justin
>
> On Tue, Aug 29, 2017 at 8:53 AM, aragoubi <aymen.rag@gmail.com> wrote:
>
>> Yes, and with the RemotingConnection I can get only the remote adress (ip
>> adress and port).
>> So it is not possible to know the user when intercepting
>> MqttSubscriveMessage?
>> Could I add this by changing the Artemis project code ?
>>
>>
>>
>> --
>> View this message in context: http://activemq.2283324.n4.nab
>> ble.com/Artemis-Getting-client-username-when-intercepting-Mq
>> ttSubscribeMessage-tp4730047p4730055.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message