Hi,

Dan OConnor wrote:
> On 30 Jun 01, at 16:19, Ole Husgaard wrote:
> > I have to warn against the obvious way of doing local
> > transaction numbering:
> > A server-wide WeakHashMap that maps Transaction to
> > Integer.
> 
> I wanted to ask about this... The JTA spec requires (in 3.3.4) that
> the Transaction object's equals and hashCode methods be
> overridden to return true or the same hash number, respectively, if
> the target object and parameter object both refer to the same
> global transaction. These are enough to ensure a HashMap
> functions correctly, and to allow us to find out if different instances
> refer to the same transaction. Did I misunderstand your point (or
> perhaps the spec)?

You are absolutely right: I was wrong here.
Thanks for reminding me.

And worse: I have to go fix a bug in the
class org.jboss.tm.TransactionImpl to be
spec-compliant.


Best Regards,

Ole Husgaard.

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

Reply via email to