>From base-aop.xml

  |    <bind pointcut="field(javax.transaction.Transaction 
*->@org.jboss.aspects.Current)">
  |       <advice name="access" 
aspect="org.jboss.aspects.tx.TransactionInjector"/>
  |    </bind>
  | 

So, basically if you annotate a field of type Transaction w/ @Current and you 
are running a load-/compiletime woven application in jboss you get the current 
Tx injected into your class. Unless you actually want to manage the Tx yourself 
though, I'd suggest you use the @Tx annotation instead for "CMT" in your POJOs

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949436#3949436

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949436


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to