Hello Senthil,
You can use Application Client (which is similar to standalone
java client) to call
EJB and this client can create a transaction prior to calling.
"The client can leverage standard J2EE artifacts such as InitialContext, UserTransaction, and EJBs."
Read more about Application Client:
J2EE Application Client
first case under container's action why there is no info about calling setRollbackOnly().Is it not possible to set the transaction to rollback when it's the one from the caller's
The first action that container will take is to propagate back the exception (along with marking Tx for rollback if needed) . Since the transaction was initiated by the client. It is the client which will rollback after checking for status and knowing if setRollback was invoked by another bean that took part in Tx.
So - the one who starts it : in that bean there is a check for the status and rolling back if needed.
Regards,
Shivani