Patches item #588620, was opened at 2002-07-30 11:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=588620&group_id=22866

Category: JBossMQ
Group: CVS HEAD
Status: Open
Resolution: None
Priority: 5
Submitted By: Aaron Lindsey (alindsey)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for JMS duplicate message error

Initial Comment:
This patch is in response to the following thread from
the forums:

http://jboss.org/forums/thread.jsp?forum=48&thread=18150

The problem is related to an interaction between the
jdbc2 PersistenceManager and the MessageCache.  When
adding a message to a queue, it is first added to the
message cache and then added to the queue itself.  When
the system is low on memory, the message is immediately
swapped out to storage when it's added to the cache. 
This sets the isStored flad on the message to true. 
When the message is added to the PersistentQueue, the
isStored flag is cleared, causing the
PersistenceManager to attempt to add the message to the
database where it already exists, causing an exception.
   The PersistentQueue patch removes the call to
invalidate() in addMessage() so that the isStored flag
keeps its value.  This PersistenceManager patch moves
the creation of a database connection out of the else
clause of an if statement and puts it before the if. 
Removal of the invalidate() call allows the program
thread to enter either branch of the if statement and
each branch requires a live database connection.
   This same error is also present in 3.0.0 and 3.0.1RC1.

Aaron


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376687&aid=588620&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to