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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -