Data are not visible at support transation block
问题 My method calls are like follow. @TransactionAttribute(TransactionAttributeType.SUPPORTS void M1() { M2(); M3(); } @TransactionAttribute(TransactionAttributeType.REQUIRED) void M2(){ //saving x on data base } @TransactionAttribute(TransactionAttributeType.SUPPORTS) void M3(){ //accessing x from data base } The issue is, some times value x is unavailable at method M3. Can any body say whats the possible issue here ? 回答1: There are two cases in your example, result is depending on whether is