[ http://jira.andromda.org/browse/SPRING-78?page=comments#action_11622 ] Philip Mark Donaghy commented on SPRING-78: -------------------------------------------
See the forum discussion, Using the ManageableServiceLocator from an EJB context, located here, http://galaxy.andromda.org/forum/viewtopic.php?t=85 for historical. > Transaction manager option for transactions created by the container > -------------------------------------------------------------------- > > Key: SPRING-78 > URL: http://jira.andromda.org/browse/SPRING-78 > Project: Spring Cartridge > Type: Improvement > Components: CRUD > Versions: 3.0M3, 3.0RC1, 3.0RC2, 3.0 Final, 3.0.1, 3.1M1 > Environment: Linux JDK Sun 1.4.2 > JBoss 3.2.6 > Reporter: Philip Mark Donaghy > Assignee: Chad Brandon > > If a spring manageable entity crud operation is called while participating in > a container managed transaction the spring transaction manager should be > configured to use the JTA transaction manager. This configuration can be > container specific previous to j2ee 1.4 > My JBoss configuration for this scenario is an example of this. The following > must be specified. > <bean id="containerTransactionManager" > class="org.springframework.jndi.JndiObjectFactoryBean"> > <property > name="jndiName"><value>java:/TransactionManager</value></property> > </bean> > <!-- Transaction Manager --> > <bean id="transactionManager" > class="org.springframework.transaction.jta.JtaTransactionManager"> > <property name="userTransactionName"><null></null></property> > <property name="transactionManager"><ref > bean="containerTransactionManager"/></property> > </bean> > The j2ee 1.4 specification should only need the following. > <!-- Transaction Manager --> > <bean id="transactionManager" > class="org.springframework.transaction.jta.JtaTransactionManager"/> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel
