posted 20 years ago
Hi All
I was going through Message Driven Beans(MDB) . I read that we can only have 2 transaction attribute types on the onMessage method of the MDB.
they are required & notsupported.
Could someone ellaborate on why only these 2 and not the other transaction attrib's
What i read is Because transaction context never flows over JMS messages, a
message-driven bean can never perform work in the scope of the client's transaction.
The transaction attributes of the onMessage method are hence restricted to Required
and NotSupported.
Now in this scenario what if the calling client has a transaction context & the onMessage method has a required transaction attribute
Could someone ellaborate a bit why requiredNew/mandatory will not work for onMessage keeping in mind both the contexts (calling method has a transactioncontext & the other phenomena is the calling method does not have a transaction context)
Rgrds
Manish