Hi Cham,
Do you think this is possible?
Yes, see for example Pro
EJB 3 chapter 5, page 130:
Resource transactions [= entity transactions, remark from me] may be freely started and committed any number of times within a JTA transaction without impacting the state of the JTA transactions.
This can be used for example to decouple persisting log entries from committing resp. rolling back the business transactions.
I also tried this example with starting and committing an entity transaction within a JTA transaction that will be rolled back. Worked as expected: The business data were not in the database while the log entries are.