Originally posted by Ram Prasad: javax.ejb.TransactionRequiredException is a system exception and all system exceptions are reported to client as RemoteException for Remote clients and EJBException for local clients.
Look closely. The question states "javax.transaction.TransactionRequiredException" not "javax.ejb.TransactionRequiredException"
If interested, this is the reasoning for my earlier post: According to spec 18.1.1 Application exceptions (page 372), "An application exception class must not be defined as a subclass of the java.lang.RuntimeException or of the java.rmi.RemoteException." Taking this into consideration, TransactionRequiredException is a system exception (also mentioned in SCBCD Study kit). And my understanding was that remote clients will recieve RemoteException for any generated System exception. This led me into believing that TransactionRequiredException might be wrapped into a RemoteException before passing it to client.
In this case the relevant section in the spec was under "184.108.40.206 Mandatory":
If the client calls without a transaction context, the Container throws the javax.transaction. TransactionRequiredException exception if the client is a remote client, or the javax.ejb.TransactionRequiredLocalException if the client is a local client.
Also note it's "javax.ejb.TransactionRequiredLocalException", not "javax.ejb.TransactionRequiredException" (missed the "Local")