To be fair, I think flush is doable, transaction is a lot harder. For example how does JTA react when no Tx resource is involved but you do demarcate Tx via an EJB?