what will happen if a client retrieve a message and fail to consume it?

Hi

thank you for reading my post

I am using Sun IMQ for my jms stuff and i have a queue which all of its message should be proceed.

I use client acknowledge mode to ensure that a message removes from the queue after a client consume it correctly.

Now what if a client consume a message and it face an exception during processing of message?

How i can return that message to queue?

Thanks

[430 byte] By [Legolas.wa] at [2007-11-27 5:35:56]
# 1
As log as the broker has not received the message aknowledge it will try to redeliver the message. A message gets deleted from the broker ony after it has been acknowledged. So you don't have to return the message to the queue.
one9966a at 2007-7-12 15:05:41 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 2
Thank you for reply.how much time MQ will wait before it deliver the message to another consumer?imagine that a message is consumed by a client but client does no acknowledge it after 10 minutes or so, when will mq let other consumers to consume this
Legolas.wa at 2007-7-12 15:05:41 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 3
any comment of hint is very welcomethanks
Legolas.wa at 2007-7-12 15:05:41 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 4
any comment?
Legolas.wa at 2007-7-12 15:05:41 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 5

Once the message is seen, it is associated with a session. Because of this, the message will be redelivered when the session is closed and will be acknowledged if message.acknowledge() is called for another message.This behavior is required by the JMS Specification

Once the session is closed, it will be immediately re-delivered.

Linda_Schneidera at 2007-7-12 15:05:41 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...