Originally posted by B Sathish:
But Never is simpler than NotSuppported right ???
Lets not forget that we are in an MDB here - there will never be a pre-existing transaction context. So in that regard Never and NotSupported will produce the same behaviour: the method will run in an "unspecified transaction context".
However when you compare Never and NotSupported in general Never is the more dangerous one because it could throw an exception (will never happen in an MDB) while NotSupported only suspends the transaction (will never happen in an MDB).
Furthermore in an MDB there is no-one to throw an exception to (not that Never would ever have the chance to throw one in an MDB).
So overall NotSupported is the "safer" one to convey "runs in an unspecified transaction context".