Bugs item #547831, was opened at 2002-04-23 16:17
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=547831&group_id=22866

Category: JBossMQ
Group: v3.0 Rabbit Hole
>Status: Open
Resolution: Works For Me
Priority: 5
Submitted By: Randy Dey-Toth (rdeytoth)
Assigned to: Hiram Chirino (chirino)
Summary: JMS Redelivery doesn't work

Initial Comment:
According to a posting in the forum, this is an "old 
bug", fixed in the 3.0 line.  But it is not fixed.

When using a durable persistent Topic, unacknowledged 
messages are only redelivered when the server is 
restarted.


----------------------------------------------------------------------

>Comment By: Randy Dey-Toth (rdeytoth)
Date: 2002-05-06 11:40

Message:
Logged In: YES 
user_id=524545

Any case where the JMS client exits before acknowledging 
receipt of a message from a Topic, and then starts up again 
without the server restarting, will demonstrate the failure 
of the server to redeliver unacknowledged messages without 
a restart.

Attached is a Jar containing three files:  
JMSReceiver.java, JMSReceiver.properties, and 
HeartBeat.java.  The last simply pumps 1000 messages into 
the topic, giving each a sequence number and setting a 
message property with the sequence number.  The first 
fetches messages from the Topic, and prints their sequence 
numbers to the screen.  Started with as TEST=true system 
property, it sleeps for a second between receiving the 
message and acknowledging it, making it easy to kill in 
between.  The properties file is to configure the classes 
to talk to a certain Topic.

To demonstrate the lack of redelivery without a restart, 
compile the two Java classes and do the following:

1.  Set up a Topic in JBoss, and modify the 
JMSReceiver.properties file to point to that Topic.
2.  run
    java aoe.jms.HeartBeat 0
  This will pump 1000 test messages into the Topic.
3.  run
    java -DTEST=true aoe.jms.JMSReceiver
4. Kill the JMSReceiver in between a receipt and an 
acknowledge.  Note the sequence number of the message 
received but not acknowledged (this is the one that should 
be redelivered when the receiver starts up again).
5. Start the JMSReceiver again, as above.  Note that the 
first message received is NOT the one that was acknowledge, 
but rather the following one.
6.  Kill the JMSReceiver again.
7.  Restart the JBoss server.
8.  Start the JMSReceiver again.  Notice that the 
unacknowledged messages not received before ARE now 
received.

----------------------------------------------------------------------

Comment By: Hiram Chirino (chirino)
Date: 2002-05-02 17:44

Message:
Logged In: YES 
user_id=175851

I've never seen this happen.  Do you have test case that 
can reproduce this???

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376685&aid=547831&group_id=22866

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to