Hi Jim,

Try adding this to server/default/conf/log4j.xml

 <category name="org.jboss.ejb.plugins">
   <priority value="TRACE" class="org.jboss.logging.XLevel"/>
 </category>

And remove this from the file appender if it is there
   <param name="Threshold" value="INFO"/>

Run your MDB and look in
server/default/log/server.log

You will see where transactions start and stop
[org.jboss.ejb.plugins.TxInterceptorCMT]

RequiresNew should commit on the return stroke of the
invocation.

Regards,
Adrian

From: Michael Bartmann <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] Erroneous deadlock detected???
Date: Thu, 24 Oct 2002 23:36:13 +0200



Jim Crossley wrote:
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???
Good point; you got me. :-)
I'm not exactly sure about the semantics at this point; the
incident I refered to in my first comment involved a nested call.
This might depend on the tx markup of the outer method.

Regards,
Michael

 // 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



-------------------------------------------------------
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

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



-------------------------------------------------------
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

Reply via email to