You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Netlancer <ne...@mobigraph.co> on 2014/05/20 16:26:27 UTC

mqtt subscription information not shared across network of brokers

Hi,

  I am using activemq-5.10-SNAPSHOT codebase for mqtt. I tried the 
following scenario with 2 broker network ( with 
staticallyIncludedDestination ). the persistence store is not shared 
between these two brokers.

Scenario 1:

client c1 ( clientid1) connects to broker A, publishes to topic A with 
cleansession = false
client c2 ( clientid2) connects to broker B, subscribes to topic A with 
cleansession = false

In this scenario, c1 receives message sent by c2 as expected.

Scenario 2:

client c1 publishes to topic A on broker A
client c2 now connects to broker A with cleansession=false. In this 
case, no messages are received by c2.

per mqtt , if a client has set clean session as false, it should be auto 
subscribed to topics which were subscribed already.

Please, can you let me know whether subscription information are 
propagated between brokers so that a client connecting to either of the 
broker receives the message

Thanks,
nl


Re: mqtt subscription information not shared across network of brokers

Posted by surfnerd <su...@outlook.com>.
Can you make a test case ?
I can check it for you. We implemented MQTT network of brokers but never
came across the problem. ( It was KahaDB though.)



--
View this message in context: http://activemq.2283324.n4.nabble.com/mqtt-subscription-information-not-removed-from-persistence-store-tp4678522p4681559.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.

Re: mqtt subscription information not shared across network of brokers

Posted by Netlancer <ne...@mobigraph.co>.
Hi,

  It would be helpful if someone can provide input on this.

Thanks,
nl

On 20.05.2014 19.56, Netlancer wrote:
> Hi,
>
>  I am using activemq-5.10-SNAPSHOT codebase for mqtt. I tried the 
> following scenario with 2 broker network ( with 
> staticallyIncludedDestination ). the persistence store is not shared 
> between these two brokers.
>
> Scenario 1:
>
> client c1 ( clientid1) connects to broker A, publishes to topic A with 
> cleansession = false
> client c2 ( clientid2) connects to broker B, subscribes to topic A 
> with cleansession = false
>
> In this scenario, c1 receives message sent by c2 as expected.
>
> Scenario 2:
>
> client c1 publishes to topic A on broker A
> client c2 now connects to broker A with cleansession=false. In this 
> case, no messages are received by c2.
>
> per mqtt , if a client has set clean session as false, it should be 
> auto subscribed to topics which were subscribed already.
>
> Please, can you let me know whether subscription information are 
> propagated between brokers so that a client connecting to either of 
> the broker receives the message
>
> Thanks,
> nl
>
>
>
>