[ openjms-Bugs-971254 ] Messages lost perhaps !?

"SourceForge.net" <[email protected]> Tue, 29 Jun 2004 19:09:26 -0700
Newsgroups gmane.comp.java.openjms.devel
Message-ID <[email protected]>
Bugs item #971254, was opened at 2004-06-12 02:27
Message generated for change (Comment added) made by tanderson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=474136&aid=971254&group_id=54559

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: FrESh (frezh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Messages lost perhaps !?

Initial Comment:

Ok, here is the narrative of the thing:

OpenJMS Initial Satate:
Idle, for more then 15 hrs, last time it was used it
feeled slower than usual.
4 threads publishing 2500 persistent messages each at
the same time, to the same topic (Topic A).
1 consumer waiting to read persistent messages on Topic B.
Using MySQL.

After some seconds, of the 4 threads had started, and
before they have finished, a consumer started, this was
suposed to receive persistant messages from Topic A,
modify them and publish them in a multithreaded (10
threads) fashion to Topic B. But it didnt worked !!!

It only works when Topic A consumer is plugged before
the 4 publishing threads had started.

Wel... Is this a Bug or I'm just doing something wrong,
I'm using durable subscriptions btw.


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

>Comment By: Tim Anderson (tanderson)
Date: 2004-06-30 12:09

Message:
Logged In: YES 
user_id=557161

Make sure each Session instance is only being accessed by a 
single thread of control. It is a programming error to use 
multiple producers/consumers on a single Session from 
multiple threads.

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

Comment By: Tim Anderson (tanderson)
Date: 2004-06-30 12:07

Message:
Logged In: YES 
user_id=557161

Make sure each Session instance is only being accessed by a 
single thread of control. It is a programming error to use 
multiple producers/consumers on a single Session from 
multiple threads.

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

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


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com