Hi all,

I also need cleansession=false to be able to receive offline pubs. 

I wrote a MQTTBroker plugin last year that more or less solved my problem. But 
before I finished testing, we had to move with our lab to a new space :-( 

@Maarten: Unfortunately, the new lab is not ready now, but by the end of the 
week. So I can send you my plugin next week, if you like. Maybe we can 
see how we could fix that issue in parallel. 

BTW, if you do not need any rich protocoll conversion (eg from MQTT to JMS) 
then I strongly recommend to use Apollo. 

br,
Christian


-------- Original-Nachricht --------
> Datum: Thu, 17 Jan 2013 09:15:44 +0000 (UTC)
> Von: M van Dillen <mvandil...@tensing.com>
> An: users@activemq.apache.org
> Betreff: Re: MQTT and JMS/NMS: ActiveMQ vs. Apollo

> Gary Tully <gary.tully@...> writes:
> > Seems like you want cleanSession=true in your mqtt client.
> > by default mqtt clients are durable subscribers so unless they ack, all
> > messages will be retained by the broker.
> 
> I am using CleanSession = false to allow for offline queuing.
> Unless there is another way I really need this feature.
> 
> > On 5 December 2012 00:27, Christian Webel <c_webel@...> wrote:
> > > ..if I then call removeConsumers so
> > > that the durable subscriptions get deactivated results to strange
> reconnect
> > > behaviour: everytime I reconnect after a connection loss, all the
> messages
> > > are pushed to my device and never deleted from the topic. I always
> receive
> > > all messages that were sent during my offline time.
> 
> Even without any custom plug-in running I am seeing this behavior as well.
> ActiveMQ 5.7, MQTT protocol with durable subscription, Android 4.1 device
> with
> latest Eclipse Paho library (jar from their site). Messages sent to the
> device
> while offline are queued as expected, but seem never to be ACKed. All
> offline
> messages ever sent to the device appear all to be sent to the device when
> it
> comes online again. Over and over again.
> 

Reply via email to