> |Sorry, I'm not following here. What exactly is the problem?
>
> If you call an instance and check the Tx you will go in the block. Now if
> it is called from something else than the instance (bean or client) then
it
> is OK, just a new participating thread in the block, blah blah. but if it
> is from the instance and in the instance we still need an exception... we
> still need to detect the instance callback... not portable, hard, for
> what????
Still not following. If bean A is called in a tx, calls B, which calls A,
then we will not block, but will get to the line
if (!isCallAllowed(mi))
now, if the call is not allowed (i.e. it is not a home call, and the bean is
not reentrant), then a remoteexception should be thrown. Currently the code
does a wait, as if it should wait for the lock to be released (which will
never happen since it's the same tx that is holding it). Why? Why has the
"throw remoteexception" code been commented out?
I don't see the problem... argh...
Can you be even more explicit?
Sorry,
Rickard