posted 20 years ago
One of the things mentioned in HFE is that MessageDrivenBeans should use only Required or NotSupported as Tx attributes.
But since the container calls the MDB's onMessage method, we can assume that the onMessage call is called without any tx context.
It will be like this when Required is used
onMessage
(Tx A)
Container ---> Container
(no tx) (No tx)
Wont it be the same when when the RequiresNew is used too?
Also we assume that when the container calls NotSupports, it is calling without any tx context. If that is the case, why cant Supports be a valid attribute (because Supports and NotSupported will look the same)?
So why cant we use it them?
[ November 21, 2004: Message edited by: Justin ]