Originally posted by David Follow:
[QB]Say, I have a SessionBean that has "RequiresNew" as the CMT Tx attribute. In my code I would like to get a hold on this transaction
Why? The EJBContext gives you the getRollbackOnly() and setRollbackOnly() methods; what else could you possibly want to do that would not step on the containers toes?
CMT -
Container Managed Transaction; i.e. Container: Hands off Bean this is my territory - you just tell me whether or not you can finish your job!
BMT -
Bean Managed Transaction; i.e. Container: Fine, fine, micro-manage everything yourself why don't you - I'll even tell my guys to co-operate with you if they can - but don't expect any co-operation from the other square heads like you. (BMT transactions can propagate into a CMT bean (Mandatory,Required,Supported) but not into another BMT bean (no transaction can)).