arquillian / continuous-enterprise-development

Testable Solutions for Modern Applications
http://continuousdev.org/
116 stars 150 forks source link

chapter 7 @TransactionAttributeType.MANDATORY #126

Closed yuxh closed 9 years ago

yuxh commented 9 years ago

"The default for EJB is @TransactionAttributeType.MANDATORY, which creates a transaction if one is not already in flight." I checked javeee6 ,it means"If there is no existing transaction, an exception is thrown. "

robertpanzer commented 9 years ago

Hmmm... Actually the default is REQUIRED, which creates a transaction if there is none yet.

yuxh commented 9 years ago

yes,it seems I checked the wrong part :),thank you .