RE: onMessage method synchronized

"Tim Anderson" <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
If the listener is only registered with a single consumer, 
then it is synchronous by default, as sessions are single threaded.
If it is registered with multiple consumers from different sessions, 
make the onMessage() method synchronized.

-Tim

> -----Original Message-----
> From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org 
> [mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf 
> Of Diego Rossi
> Sent: Thursday, 16 March 2006 12:41 AM
> To: [email protected]
> Subject: [openjms-user] onMessage method synchronized
> 
> Hi.
> I have a messageListener which must receive messages from a 
> topic in a syncronized way, that it: jms provider must 
> deliver a message to my subscriber only if the subscriber has 
> returned from a previous
> onMessage() call.
> Is it possibile to configure this behaviour at the openjsm 
> provider level in its config file ?
> Do you see any problem in simply synchronizing the onMessage method ?
> Thankyou very much for every possible help.
>  
>  
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking 
> scripting language that extends applications into web and 
> mobile media. Attend the live webcast and join the prime 
> developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> openjms-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openjms-user
> 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.