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

javascript - How to process users in one specific order using map o each function? -

javascript - Linking from page A to a specific iframe on page B -

java - Two interface have same method name with different return type -