I understand the pros and cons, I am just saying what I feel. You can outvote me if you wish.
David > -----Original Message----- > From: Hiram Chirino [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 24, 2002 2:14 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-dev] Seeing occasional Invalid tx id with JMS RA > > > > Think about it this way... somebody creates a simple servlet > that creates a > unit of work by sending 2 messages and then commits the work. > Somebody that > does not know the spec to will might cache that session in a instance > variable. If 2 requests come in at the same time, they will > screw each > other up seriously. The first request might commit his 2 > messages and some > of the messages the 2nd thread was creating. > > So the question is, should we try to make the session > thread-safe for the > power users out there that MIGHT know how stuff is working > under the covers. > Or should we make the session check conncurent access better to let > beginer user know when he has potentialy made a semantical error. > > Regards, > Hiram > > >From: David Maplesden <[EMAIL PROTECTED]> > >Reply-To: [EMAIL PROTECTED] > >To: "'[EMAIL PROTECTED]'" > ><[EMAIL PROTECTED]> > >Subject: RE: [JBoss-dev] Seeing occasional Invalid tx id with JMS RA > >Date: Fri, 24 May 2002 13:36:43 +1200 > > > >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 _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx _______________________________________________________________ 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 --- Incoming 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 --- 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