Given :
public class MyException extends Exception {}
The business interface Foo declares a method work0:
I. public void work0 throws MyException;
The bean class FooBean contains the following:
10.©Stateless
II. @Remote(Foo.class)
12. public class FooBean {
13. public void workQ throws MyException {
14. //do some work not shown here
15. throw new MyException0;
16.}
Assuming there is no deployment descriptor, which statement is true when the workQ method is
invoked by a client with an existing transaction context and execution reaches Line 15?
A.
The container does notroll back thetransaction.
B.
The clientreceives javax.ejb.EJBTransactionRequiredException.
C.
The clientreceivesjavax.ejb.EJBTransactionRolledbackException.
D.
Thecontainer marks the transactionforrollback by calling the EJBContext.setRollbackOnly
method.