Spring notes(五) - transaction

Spring transaction mechanism supports: programming transaction declaring transaction I. Programming transaction: At first, you should define a transactionManager which is the subclass derived from PlatformTransactionManager. DataSourceTransactionManager: inject datasource instance to it. JtaTransactionManager: no need to inject anything HibernateTransactionManager: inject sessionFactory instance to it JdoTransactionManager: inject persistenceManagerFactory instance to it Then, inject these transactionManagers to JdbcTemplate, [...]

By javafuns on March 18, 2008 at 22:54 · Views: 714 · Permalink · RSS · Leave a comment
Categorized in: Java · Tagged with: , ,
  • Highest Rated

  • My PicasaPhotos

    IMG_0860.JPG

    86e91643951a780073f05d85.jpg

    1104844548_QKayLv.jpg

  • RSS My del.icio.us

  • My RSS