EJB 2.0 specs says:
If bean using Bean Managed Transaction (BMT) demarcation throws application exception, container re-throws application exception.
However, specification does not mention about what happens to transaction associated with the Bean.
If bean instance called UserTransaction.setRollbackOnly() in method before throwing application exception, one needs to rollback transaction or commit it, isn't it? So who's responsible to do the same? Is it not Container?

I think it's Container who co-ordinates with Transaction Manager. But if it's not the Container, please correct me and tell who does commit or rollback in the above mentioned case.
Regards,
Sandesh
Regards,<br />Sandesh<br />(SCJCP, SCWCD, SCBCD - 99%, OCP-1)<br /> <br />Either find a way or create one.