Hello JBoss gurus
I've spotted what might be small problem in
EntityInstanceInterceptor.invoke(MethodInvocation mi).
What if mi.getTransaction() returns null because you are, for instance,
invoking a "NotSupported" method? Is it still appropriate to block in this
case?
The code in question is near the beginning of the while (!mutex.isValid())
loop.
...
// Do we have a running transaction with the context
Transaction tx = ctx.getTransaction();
if (tx != null &&
// And are we trying to enter with another transaction
!tx.equals(mi.getTransaction()))
{
// Let's put the thread to sleep a lock release will wake the thread
// Possible deadlock...
Cheers
Stuart Hill
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development