<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Sealyu

    --- 博客已遷移至: http://www.sealyu.com/blog

      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
      618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks
    原帖地址:http://www.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/4.3.0.cp04_fp01/html/Seam_Reference_Guide/ch10s02s02.html

    Configuring a Seam transaction manager

    Seam provides a transaction management abstraction for beginning, committing, rolling back, and synchronizing with a transaction. By default Seam uses a JTA transaction component that integrates with Container Managed and programmatic EJB transactions. If you are working in a Java EE 5 environment, you should install the EJB synchronization component in components.xml:
    <transaction:ejb-transaction />
    However, if you are working in a non EE 5 container, Seam will try auto detect the transaction synchronization mechanism to use. However, if Seam is unable to detect the correct transaction synchronization to use, you may find you need configure one of the following:
    • JPA RESOURCE_LOCAL transactions with the javax.persistence.EntityTransaction interface. EntityTransaction begins the transaction at the beginning of the apply request values phase.
    • Hibernate managed transactions with the org.hibernate.Transaction interface. HibernateTransaction begins the transaction at the beginning of the apply request values phase.
    • Spring managed transactions with the org.springframework.transaction.PlatformTransactionManager interface. The Spring PlatformTransactionManagement manager may begin the transaction at the beginning of the apply request values phase if the userConversationContext attribute is set.
    • Explicitly disable Seam managed transactions
    Configure JPA RESOURCE_LOCAL transaction management by adding the following to your components.xml where #{em} is the name of the persistence:managed-persistence-context component. If your managed persistence context is named entityManager, you can opt to leave out the entity-manager attribute. (see Section 10.3, “Seam-managed persistence contexts”Seam-managed persistence contexts)
    <transaction:entity-transaction entity-manager="#{em}"/>
    To configure Hibernate managed transactions declare the following in your components.xml where #{hibernateSession} is the name of the project's persistence:managed-hibernate-session component. If your managed hibernate session is named session, you can opt to leave out the session attribute. (see Section 10.3, “Seam-managed persistence contexts”Seam-managed persistence contexts)
    <transaction:hibernate-transaction session="#{hibernateSession}"/>
    To explicitly disable Seam managed transactions declare the following in your components.xml:
    <transaction:no-transaction />
    For configuring Spring managed transactions see Section 24.5, “Using Spring PlatformTransactionManagement”using Spring PlatformTransactionManagement. .

    posted on 2009-04-20 20:10 seal 閱讀(820) 評論(0)  編輯  收藏 所屬分類: Seam
    主站蜘蛛池模板: 亚洲精品美女在线观看| 久久精品九九亚洲精品天堂| 亚洲免费人成视频观看| 成年人免费的视频| gogo全球高清大胆亚洲| 亚洲成AV人片一区二区密柚| 中文字幕乱理片免费完整的| 最近2019中文免费字幕在线观看| 欧美a级在线现免费观看| 中文字幕亚洲日韩无线码| 亚洲校园春色另类激情| 男女男精品网站免费观看| 91香蕉国产线在线观看免费| 四虎影视永久免费观看地址| 精品亚洲成a人片在线观看 | 亚洲黄色网址大全| caoporn成人免费公开| 无人在线观看完整免费版视频| 久久精品国产亚洲AV果冻传媒 | 2017亚洲男人天堂一| 女人张开腿给人桶免费视频| 国产91精品一区二区麻豆亚洲| 亚洲AV无码一区二区三区人| 国内永久免费crm系统z在线 | 特级av毛片免费观看| 最近2019中文免费字幕| 67pao强力打造67194在线午夜亚洲 | 亚洲欧洲国产成人精品| 永久在线观看免费视频| 亚洲欧洲日本精品| 四虎影视精品永久免费| a级片免费观看视频| 曰韩亚洲av人人夜夜澡人人爽| 久久久久久亚洲精品无码| jizz18免费视频| 亚洲综合久久久久久中文字幕| 成人激情免费视频| 免费在线黄色电影| 亚洲无码一区二区三区| 精品国产污污免费网站aⅴ| 婷婷国产偷v国产偷v亚洲|