Hi Vaclav, theoretically, you could use an interceptor[1] to intercept the CONNECT request and alter the CONNACK response but I would suggest you contribute[2] by proposing a change to support the optional MQTT feature 3.2.2.3.15 Response Information[3].
[1] https://activemq.apache.org/components/artemis/documentation/latest/intercepting-operations.html#intercepting-operations [2] https://activemq.apache.org/components/artemis/documentation/hacking-guide/ [3] https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901095 Regards, Domenico On Wed, 24 Jan 2024 at 10:58, Vaclav Haisman <vaclav.hais...@broadcom.com.invalid> wrote: > Hi. > > I am embedding Artemis server and I am struggling to figure out how to > use/modify the 3.2.2.3.15 Response Information ( > https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901095) > in Artemis server. > > Is there an Artemis server plugin that I can create that would let me > react on connection and prepare a response topic that I could then let the > client know about via the Response Information field in the CONNACK > response? > > -- > > -- > VH > > > This electronic communication and the information and any files > transmitted with it, or attached to it, are confidential and are intended > solely for the use of the individual or entity to whom it is addressed and > may contain information that is confidential, legally privileged, protected > by privacy laws, or otherwise restricted from disclosure to anyone else. If > you are not the intended recipient or the person responsible for delivering > the e-mail to the intended recipient, you are hereby notified that any use, > copying, distributing, dissemination, forwarding, printing, or copying of > this e-mail is strictly prohibited. If you received this e-mail in error, > please return the e-mail to the sender, delete it from your computer, and > destroy any printed copy of it.