I am learning the new annotations for transaction management, like @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW), but i could not find out how to create a transaction with SERIALIZABLE isolation. Is this possible on a per-method basis or i have to set it on the connection for the whole application?
+1
A:
Is this possible on a per-method basis or i have to set it on the connection for the whole application?
This is not possible in a standardized way, this is not covered by the EJB specification.
But some containers do offer support for this as mentioned in How can I set isolation levels per method in EJB 3.
Pascal Thivent
2010-09-17 13:52:59