EJB SessionBean - combination of @TransactionManagement and @TransactionAttribute
am I right that combination of @TransactionManagement(TransactionManagementType.BEAN) with any settings of @TransactionAttribute on SessionBean has no sense?
@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
@TransactionAttribute([any possible value of TransactionAttributeT开发者_Python百科ype])
public class SomeSessionBean {
....
}
I cannot find this in any documentation.
http://download.oracle.com/javaee/6/api/javax/ejb/TransactionAttribute.html
The TransactionAttribute annotation specifies whether the container is to invoke a business method within a transaction context. The TransactionAttribute annotation can be used for session beans and message driven beans. It can only be specified if container managed transaction demarcation is used.
精彩评论