A developer implements a system in which transfers of goods are monitored. Each transfer needs
a unique ID for tracking purposes. The unique ID is generated by an existing system which is also
used by other applications. For perfomance reasons, the transaction that gets the unique ID
should be as short as possible. The scenario is implemented in four steps which are implemented
in four business methods in a CMT session bean:
LcheckGoods Checks goods in a database
2.getUniqueld Retrieve the unique ID
3.checkAmount Checks the amount in a non-transactional system
4.storeTransfer Stores the transfer in a database as part of the calling transaction.
These methods are called by the addTransfer method of a second CMT session bean in the
following order:
checkGoods, getUniqueld, checkAmount, storeTransfer
Assuming no other transaction-related metadata, which is the correct set of transaction attributes
for the methods in the session beans?
A.
O.addTransfer REQUIRED
LcheckGoods REQUIRED
2.getUniqueldREQUIRES_NEW
3. checkAmountsNOT_SUPPORTED
4. storeTransferMANDATOR Y
B.
O.addTransferREQUIRED
LcheckGoods REQUIRED
2.getUniqueldREQUIRED
3.checkAmountsREQUIRED
4. storeTransferREQUIRED
C.
O.addTransferREQUIRED
LcheckGoods REQUIRED
2.getUniqueldREQUIRES_NEW
3. checkAmountsNEVER
4. storeTransferMANDATOR Y
D.
0.addTransferNOT_SUPPORTED
LcheckGoodsREQUIRED
2.getUniqueldREQUIRED
3. checkAmountsNOT_SUPPORTED
4.storeTransferMANDATOR Y