If you do a lookup and create from within one of the SessionBean methods in
the first bean to get a local or remote reference to the same bean, and then
invoke a method on the newly created bean, you will be invoking the second
method on a different instance of the bean, so you will not be violating any
non-reentrancy rule.
The question I have is, "Why would you do that when you can just make a
direct call to the second method from the first method in the first bean
without acquiring a refence to a second bean?".
Bill
Post by Bjvrn HamrinCan a SessionBean invoke a method on itself through its local or remote
interface without violating the non-reentrancy rule?