Originally posted by Li Xin:
It is known that onMessage in MDB can only be specified as Required or NotSupported, but what about any other method that onMessage invokes? Can we specify other Tx attribute?
Thanks.
For a CMT MDB, there is only one call back method, onMessage().
There could be other private/helper methods defined by the bean developer in the MDB but they inherit the transaction attribute specified from the onMessage() method and are called from the onMessage() method.
For a CMT-MDB there are only 2 cases possible:
Either you have a transaction or you do not have a transaction,
hence only Required and NotSupported are applicable.