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:
1.checkGoods 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.
0.addTransfer REQUIRED
1.checkGoods REQUIRED
2.getUniqueldREQUIRES_NEW
3.checkAmountsNOT_SUPPORTED
4.storeTransferMANDATORY
B.
0.addTransferREQUIRED
1.checkGoods REQUIRED
2.getUniqueldREQUIRED
3.checkAmountsREQUIRED
4.storeTransferREQUIRED
C.
0.addTransferREQUIRED
1.checkGoods REQUIRED
2.getUniqueldREQUIRES_NEW
3 .checkAmountsNEVER
4.storeTransferMANDATORY
D.
0.addTransferNOT_SUPPORTED
1.checkGoods REQUIRED
2.getUniqueldREQUIRED
3.checkAmountsNOT_SUPPORTED
4.storeTransferMANDATORY