You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by r-a-v-i <RV...@idc.com> on 2006/12/27 18:39:02 UTC

Message.getJMSRedelivered() does not work if the server restarts

Hi,

I am doing the following :

a) Start Active MQ 4.0.2
b) Create a transacted session, create a topic , publish a message to the
topic.
c) Create a durable subscriber  and kill the durable subscriber, before the
session.commit() is called.
e) Message gets redelivered and in the onMessage() method of the respective
listener Message.getJMSRedelivered() become true.

In the above use case, instead of killing the durable subscriber, if I
restart the server, the message is getting redelivered but
Message.getJMSRedelivered() is false.

I think this is a bug. 

Can someone pls clarify.
-- 
View this message in context: http://www.nabble.com/Message.getJMSRedelivered%28%29-does-not-work-if-the-server-restarts-tf2886919.html#a8065266
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Message.getJMSRedelivered() does not work if the server restarts

Posted by Rob Davies <ra...@gmail.com>.
On 27 Dec 2006, at 17:39, r-a-v-i wrote:

>
> Hi,
>
> I am doing the following :
>
> a) Start Active MQ 4.0.2
> b) Create a transacted session, create a topic , publish a message  
> to the
> topic.
> c) Create a durable subscriber  and kill the durable subscriber,  
> before the
> session.commit() is called.
> e) Message gets redelivered and in the onMessage() method of the  
> respective
> listener Message.getJMSRedelivered() become true.
>
> In the above use case, instead of killing the durable subscriber, if I
> restart the server, the message is getting redelivered but
> Message.getJMSRedelivered() is false.
>
> I think this is a bug.
It certainly looks like it -  would you mind raising at https:// 
issues.apache.org/activemq/browse/AMQ
hopefully with a test case :)
>
> Can someone pls clarify.
> -- 
> View this message in context: http://www.nabble.com/ 
> Message.getJMSRedelivered%28%29-does-not-work-if-the-server- 
> restarts-tf2886919.html#a8065266
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>