日期:2014-05-20  浏览次数:20682 次

使用Spring管理事务不能回滚,在线等.急急急
我的applicationcontext.xml代码:
<?xml   version= "1.0 "   encoding= "UTF-8 "?>
<!DOCTYPE   beans   PUBLIC   "-//SPRING//DTD   BEAN//EN "   "http://www.springframework.org/dtd/spring-beans.dtd ">
<beans>
<import   resource= "/conf/sysmgr/rolesMgr/rolesMgrSpring.xml "   />
<import   resource= "/conf/sysmgr/userMgr/userMgrSpring.xml "   />
<import   resource= "/conf/sysmgr/reinsurer/reinsurerSpring.xml "   />
<import   resource= "/conf/sysmgr/product/insmgrSpring.xml "   />
<import   resource= "/conf/sysmgr/login/loginSpring.xml "   />
<import   resource= "/conf/contract/mreinagmntSpring.xml "   />
<import   resource= "/conf/operadata/datamodify/chkerrlistSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/gpolicy/gpolicySpring.xml "   />
<import
resource= "/conf/operadata/datarecord/liabamt/liabamtSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/policlm/policlmSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/polidiv/polidivSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/poliloan/poliloanSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/polimdf/polimdfSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/poliprm/poliprmSpring.xml "   />
<import
resource= "/conf/operadata/datarecord/spolicy/spolicySpring.xml "   />
<import
resource= "/conf/reindatamgr/redatamade/reinagmnt_fSpring.xml "   />
<import
resource= "/conf/reindatamgr/reindatamodify/repolicySpring.xml "   />

<bean   id= "MyData "
class= "org.springframework.jdbc.datasource.DriverManagerDataSource ">
<property   name= "driverClassName ">
<value> oracle.jdbc.driver.OracleDriver </value>
</property>
<property   name= "url ">
<value> jdbc:oracle:thin:@10.203.14.132:1521:remotedb </value>
</property>
<property   name= "username ">
<value> reinadm </value>
</property>
<property   name= "password ">
<value> cpic </value>
</property>
</bean>
<bean   id= "MySessionFactory "
class= "org.springframework.orm.hibernate3.LocalSessionFactoryBean ">
<property   name= "dataSource ">
<ref   bean= "MyData "   />
</property>
<property   name= "hibernateProperties ">
<props>
<prop   key= "hibernate.dialect ">
org.hibernate.dialect.Oracle9Dialect
</prop>
<prop   key= "hibernate.show_sql "> true </prop>
</props>
</property>
<property   name= "mappingResources ">
<list>
<value> com/inspur/hbm/funcInfo.hbm.xml </value>
<value> com/inspur/hbm/Rolefunc.hbm.xml </value>
<value> com/inspur/hbm/Roleinfo.hbm.xml </value>
<value> com/inspur/hbm/Userinfo.hbm.xml </value>