<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
    主站蜘蛛池模板: 免费毛片网站在线观看| 真实乱视频国产免费观看 | 亚洲日韩看片无码电影| 久久国内免费视频| 77777午夜亚洲| 宅男666在线永久免费观看| 亚洲AV噜噜一区二区三区| 全黄性性激高免费视频| 国产免费一区二区三区免费视频| 又黄又爽的视频免费看| 99精品视频在线观看免费| 婷婷亚洲综合五月天小说| 97视频免费观看2区| 中文字幕亚洲精品无码| 免费人成视频在线观看不卡| 五月天婷婷精品免费视频| 亚洲午夜久久久久久噜噜噜| 久久国产乱子伦精品免费强| 亚洲女人初试黑人巨高清| 在线成人a毛片免费播放| 色吊丝免费观看网站| 亚洲国产精品嫩草影院在线观看 | 亚洲伊人久久大香线焦| 免费无码看av的网站| 一级特级aaaa毛片免费观看 | ww亚洲ww在线观看国产| 国产成人无码免费视频97| 国产无限免费观看黄网站| 久久精品国产亚洲AV麻豆网站| 欧美最猛性xxxxx免费| 成人a毛片视频免费看| 亚洲电影中文字幕| 老司机永久免费网站在线观看| 久青草视频97国内免费影视| 亚洲精品美女在线观看| 免费a级毛片大学生免费观看 | 国产精品黄页免费高清在线观看| 亚洲精品国产专区91在线| 免费看男女下面日出水视频| 免费A级毛片无码专区| 色噜噜狠狠色综合免费视频|