[ http://jira.andromda.org/browse/SPRING-72?page=history ] Chad Brandon closed SPRING-72: ------------------------------
Resolution: Duplicate > Use/enable spring transactions even if using EJBs > ------------------------------------------------- > > Key: SPRING-72 > URL: http://jira.andromda.org/browse/SPRING-72 > Project: Spring Cartridge > Type: Improvement > Versions: 3.0 Final > Reporter: Jens Vagts > Assignee: Chad Brandon > > Even on using spring inside J2EE ($ejbEnabled) it makes sense to use spring > declarative transactions as suggested in the spring reference documentation. > Since than you can use the same transaction declarations in different > environments. > Following (small) changes have to be made to make this working: > - add a additional build property to enable spring transactions > - move the definition of the transaction manager to the > applicationContext-datasource.xml > - reference the transaction manager in the applicationContext with "ref bean" > instead of "ref local" > - make user transaction name of transaction manager configurable through > build property. For instance: for using JBoss JTA following definition is > neccessary > <bean id="transactionManager" class="$transactionManager"> > <property > name="userTransactionName"><value>UserTransaction</value></property> > </bean> ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl