|
From: Stefan D S. <ste...@us...> - 2004-07-30 18:02:39
|
BTW - Here is all I have for configuration:
dataAccesscontext-local.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
<bean id=3D"transactionManager" class=3D"org.springframework.jdbc.datasou=
rce.DataSourceTransactionManager">
<property name=3D"dataSource">
<ref local=3D"myDataSource"/>
</property>
</bean>
=
<bean id=3D"sqlMap" class=3D"org.springframework.orm.ibatis.SqlMapCli=
entFactoryBean">
<property name=3D"configLocation">
<value>/WEB-INF/sqlmapconfig.xml</value>
</property>
<property name=3D"dataSource">
<ref local=3D"myDataSource"/>
</property>
</bean>
=
<bean id=3D"genericDAOJdbc" class=3D"com.myproj.db.GenericDAOJdbc">
<property name=3D"dataSource">
<ref local=3D"myDataSource" />
</property>
<property name=3D"sqlMapClient">
<ref local=3D"sqlMap" />
</property>
=
</bean>
ApplicationContext.xml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
<bean id=3D"webTarget" class=3D"com.myproj.db.webDBFacadeImpl">
<property name=3D"genericDAO">
<ref bean=3D"genericDAOJdbc" />
</property>
</bean>
<bean id=3D"web" class=3D"org.springframework.transaction.interceptor.Tra=
nsactionProxyFactoryBean">
<property name=3D"transactionManager">
<ref bean=3D"transactionManager" />
</property>
<property name=3D"target">
<ref local=3D"webTarget" />
</property>
<property name=3D"transactionAttributes">
<props>
<prop key=3D"insert*">PROPAGATION_REQUIRED</prop>
<prop key=3D"update*">PROPAGATION_REQUIRED</prop>
<prop key=3D"*">PROPAGATION_REQUIRED,readOnly</prop>
</props>
</property>
</bean>
All,
Is there a good reference on using declarative transaction with Spring an=
d
iBatis? I know that setting up the transaction in Spring should be
transparent of the persisent implementation used in the case of iBatis, b=
ut
if I need several tables to be updated with several insert statement, a
failure to one does not appear to roll back the previous ones. Is there
something I failed to configure in the setup of either Spring or iBatis?
Thank you.
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Springframework-user mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-user=
|