[jboss-user] [JBoss Seam] - usage of @Transactional and em.joinTransaction ?

hstang do-not-reply at jboss.com
Tue May 15 12:53:38 EDT 2007


I see a lot of Seam code and examples that marks methods @Transactional and immediately do em.joinTransaction before using the em.  I was wondering what are the consequences of *not* following this pattern.  If I were using TransactionalSeamPhaseListener, there would always be a transaction active during a request, so what's the point of using @Transactional.  If I were using a seam-managed persistence context, doesn't it automatically do a em.joinTransaction()?  Correct me if I'm wrong.



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

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



More information about the jboss-user mailing list