<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 閱讀(821) 評論(0)  編輯  收藏 所屬分類: Seam
    主站蜘蛛池模板: 亚洲欧洲国产综合| MM1313亚洲精品无码久久| 91免费资源网站入口| 国产成人人综合亚洲欧美丁香花| 亚洲国产小视频精品久久久三级 | 毛片免费观看的视频| 欧洲亚洲综合一区二区三区| 亚洲国产精品无码久久SM| 国产成在线观看免费视频| 高潮毛片无遮挡高清免费 | 青娱乐在线免费观看视频| 亚洲av之男人的天堂网站| 在线视频免费观看www动漫| 最新亚洲成av人免费看| 亚洲一卡2卡4卡5卡6卡在线99| 亚洲成av人片天堂网老年人| 亚洲精品视频在线免费| 一本岛v免费不卡一二三区| 亚洲一级毛片免费看| 中国亚洲女人69内射少妇| 免费无码成人AV片在线在线播放| 两性色午夜视频免费播放| 亚洲码欧美码一区二区三区| 国产亚洲人成A在线V网站| 成人午夜性A级毛片免费| 无码人妻AV免费一区二区三区| 真正全免费视频a毛片| 亚洲一区二区久久| 国产成A人亚洲精V品无码性色| 性做久久久久免费看| 久久国产高潮流白浆免费观看| 九九免费精品视频在这里| 亚洲偷自拍另类图片二区| 久久亚洲精精品中文字幕| 亚洲日韩在线观看| 日本免费无遮挡吸乳视频电影| 久久久久久国产精品免费无码| 黄床大片免费30分钟国产精品| 亚洲爆乳成av人在线视菜奈实| 亚洲在成人网在线看| 亚洲国产精品线在线观看|