Hello everyone:
On page 79 of the spec it says
An attempt to remove a
session object while the object is in a transaction will cause the container to throw the
javax.ejb.RemoveException to the client.
I was trying to come up with a scenario where a session object using CMP could be in a trasaction when remove was called but could not. My understanding is that all business methods that run in a transaction context will complete their transaction before returning and therefore when remove is called the object will no longer be in a transcation. Since this statement is in the spec, I assume that it is possible for the object to be in a transaction when remove is called. Can anyone please describe a scenario where this is the case.
Thanks,