开发者

EJB SessionBean - combination of @TransactionManagement and @TransactionAttribute

开发者 https://www.devze.com 2023-02-09 13:18 出处:网络
am I right that combination of @TransactionManagement(TransactionManagementType.BEAN) with any settings of @TransactionAttribute on SessionBean has no sense?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消