[rabbitmq-discuss] rabbitmq java client android issues
Michael Klishin
mklishin at gopivotal.com
Sun May 4 20:16:17 BST 2014
There are no timeouts for acknowledgement but you can and should set a lower heartbeat interval for your connection
MK
> On 04/05/2014, at 12:22, Surendar Marudhachalam <surendarft at gmail.com> wrote:
>
> yes i will change to manual ack. the problem is a new channel is being created when android disconnects from network while previous is still alive. so the situation is same queue but multiple channels and consumer tags. the old channel takes long time to close. so even if i change to manual acknowledgement the message delivered to old channel which is still alive will be in unacknowledged state. so i will be missing one message as the message is requeued only after connection closes. is there a way to set timeout for message acknowledgements?
>
>
>> On Sun, May 4, 2014 at 5:31 PM, Michael Klishin <mklishin at gopivotal.com> wrote:
>> On May 3, 2014 at 2:50:35 PM, Surendar Marudhachalam (surendarft at gmail.com) wrote:
>> > > so if a user is offline messages delivered to the queue are sometimes
>> > not received by user
>> > we are using a server intermediate. so android client sends a
>> > message to server and the server publishes it
>>
>> Messages will be routed to queues regardless of whether there are consumers on them.
>>
>> Do you use automatic acknowledgements? With consumers disconnecting frequently,
>> you may want to consider manual acks:
>>
>> http://www.rabbitmq.com/tutorials/tutorial-two-java.html
>> --
>> MK
>>
>> Software Engineer, Pivotal/RabbitMQ
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140504/7f08a081/attachment.html>
More information about the rabbitmq-discuss
mailing list