I hate to disagree with Scott and Hiram but I feel that just because the
spec says Sessions should only be used in 1 thread does not neccessarily
mean that we should restrict their usage as such.  

I know a Session only makes sense in the context of a single process, but
this might still entail the usage of a couple of different threads.  I don't
think we should place any restrictions on the usage of Sessions as long as
they work, and I believe making sendMessage() synchronized will do the
trick.

This can be just one more area where JBoss goes "Beyond the Spec" but hey I
leave the final decision up to someone else.

David.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.362 / Virus Database: 199 - Release Date: 5/7/2002
 

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to