开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜