Upon re-reading this, I got confused...
On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote:
> > {
> > // Entity bean = home.create(...)
> > // bean.setX(...)
> this starts a tx1 and locks the instance bean.
Yes, but wouldn't the lock be released as soon as setX returns???
> > // bean.setY(...)
> this suspends the tx1 on bean temporarily,
> and starts a tx2, which tries to obtain the lock on the bean,
I wouldn't think tx1 would need suspension as it has already completed,
right?
> which it will never get, because tx1 is not commited or rollbacked
> yet.
What event would cause the commit or rollback? I was thinking that, for
a trans-attribute of "RequiresNew", tx1 would be committed as soon as
setX returns.
Still confused,
Jim
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user