<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
    主站蜘蛛池模板: 亚洲视频免费一区| 最近2019免费中文字幕视频三 | 中文字幕成人免费高清在线 | ww在线观视频免费观看w| 国产特级淫片免费看| 在线观看日本亚洲一区| 成人免费毛片内射美女-百度| 亚洲毛片基地日韩毛片基地 | 在线aⅴ亚洲中文字幕| 99re热精品视频国产免费| 亚洲人成色在线观看| 特级aa**毛片免费观看| 免费女人18毛片a级毛片视频| 偷自拍亚洲视频在线观看99| 亚洲第一页日韩专区| eeuss草民免费| 亚洲AV无码久久精品蜜桃| 久久午夜夜伦鲁鲁片免费无码影视 | 亚洲精品tv久久久久久久久久| 成年网站免费入口在线观看| 亚洲乳大丰满中文字幕| 日本免费人成网ww555在线| 亚洲综合激情六月婷婷在线观看 | 免费观看黄色的网站| 亚洲午夜无码久久久久小说 | 男女作爱免费网站| 精品亚洲综合在线第一区| 69pao强力打造免费高清| 亚洲熟妇成人精品一区| 亚洲女人被黑人巨大进入| 久久免费公开视频| 中国亚洲呦女专区| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 亚洲一区欧洲一区| 亚洲成A人片在线观看中文| 精品免费视在线观看| 亚洲国产最大av| 国产a v无码专区亚洲av| 中文字幕免费观看| 粉色视频免费入口| 亚洲经典在线中文字幕|