posted 20 years ago
Hi,
I'll make a brain storm over this.
My answer would be yes, I'll tell why.
First of all to use the UserTransaction methods ur MDB HAS to be a BMT demarcated bean as the specs dictate. Then u're asking if your message will be rolled back and the specs is clear about this if u look at 17.1.1 where it says:
With bean-managed transaction demarcation, the enterprise bean code demarcates transactions using
the javax.transaction.UserTransaction interface. All resource manager[27] accesses
between the UserTransaction.begin and UserTransaction.commit calls are part of a
transaction.
then on the foot note:
[27]The terms resource and resource manager used in this chapter refer to the resources declared in the enterprise bean�s deployment
descriptor using the resource-ref element. This includes not only database resources, but also JMS Connections. These
resources are considered to be �managed� by the Container.
regards.
[ February 02, 2004: Message edited by: Marcos Maia ]