transactions - @TransactionAttribute without @stateless or @stateful ? J2EE 6 - JBoss EAP 6 -
if specify @transactionattribute on class, not specify @stateless or @stateful, behavior ? session bean, or @transactionattribute ignored. ??
@stateless @transactionattribute(transactionattributetype.required) public class photosserviceimpl implements photosservice
vs
@transactionattribute(transactionattributetype.required) public class photosserviceimpl implements photosservice
without @stateless can't inject other ejbs. if instantiate without doing injection, transactionattribute wouldn't kick in anyway.
so yes, transactionattribute on non ejb class have no effect.
Comments
Post a Comment