[ openjms-Bugs-1165743 ] Persistent topic messages not removed from database

"SourceForge.net" <[email protected]> Sat, 19 Mar 2005 04:33:52 -0800
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
Bugs item #1165743, was opened at 2005-03-18 14:57
Message generated for change (Comment added) made by tanderson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1165743&group_id=54559

Category: message engine
Group: v0.7.6.1
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Tim Anderson (tanderson)
Assigned to: Tim Anderson (tanderson)
>Summary: Persistent topic messages not removed from database

Initial Comment:
Persistent messages to administered topics are not being 
removed from the database when non-durable 
TopicSubscribers are used to consume them.

To reproduce
----------------
. create an empty database
. create a non-durable TopicSubscriber to administered
  topic "topic1"
. publish a persistent message to "topic1"
. after the subscriber has received and acknowledged the
  message, run the following query:
  select count(*) from messages;

  One row will be present in the database.

Workaround
----------------

To avoid this bug, use durable subscribers to consume 
persistent messages.

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

>Comment By: Tim Anderson (tanderson)
Date: 2005-03-19 23:33

Message:
Logged In: YES 
user_id=557161

Fixed in CVS. Messages are now reference counted to ensure 
proper cleanup once the last consumer has processed them.
Fix will be available in the 0.7.7 release.

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=1165743&group_id=54559


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click