[gatein-issues] [JBoss JIRA] (GTNPORTAL-2463) Open an "Identity Transaction" only when it is necessary

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Tue Aug 21 02:22:15 EDT 2012


    [ https://issues.jboss.org/browse/GTNPORTAL-2463?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712615#comment-12712615 ] 

RH Bugzilla Integration commented on GTNPORTAL-2463:
----------------------------------------------------

Jared MORGAN <jmorgan at redhat.com> made a comment on [bug 835578|https://bugzilla.redhat.com/show_bug.cgi?id=835578]


    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,9 +1,9 @@
 Hibernate transactions had to be started for each HTTP request from an anonymous or authenticated user, which in turn required a new database connection from the connection pool (an expensive operation if it is not required for the request). The fix enables a new option, "lazyStartOfHibernateTransaction", which is set in gatein.ear/02portal.war/WEB-INF/conf/organization/picketlink-idm/picketlink-idm-config.xml. 
 </para>
 <programlisting>
-  <option>
-    <name>lazyStartOfHibernateTransaction</name>
-    <value>false</value>
-  </option>
+&lt;option&gt;
+    &lt;name&gt;lazyStartOfHibernateTransaction&lt;/name&gt;
+    &lt;value&gt;false&lt;/value&gt;
+  &lt;/option&gt;
 </programlisting>
 <para>If the value is set to true, the Hibernate transaction is started only when required, and not for every request. The default value is false for backwards-compatibility.
                
> Open an "Identity Transaction" only when it is necessary
> --------------------------------------------------------
>
>                 Key: GTNPORTAL-2463
>                 URL: https://issues.jboss.org/browse/GTNPORTAL-2463
>             Project: GateIn Portal
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: Identity integration
>    Affects Versions: 3.2.0-GA
>            Reporter: Nicolas Filotto
>            Assignee: Boleslaw Dawidowicz
>              Labels: performance
>         Attachments: LAZY-OPEN-TX-IDM.patch
>
>
> The component {{PicketLinkIDMOrganizationServiceImpl}} has been defined as a {{ComponentRequestLifecycle}} to be able to scope an "identity transaction" to the life time of the request. However depending on the page we try to access, it could be useless to open a tx in case the organization service is not even accessed which can have a dramatic impact on performances for nothing especially when we use hibernate because when we open a tx with hibernate, it does a JDBC call to switch to non auto commit mode.
> Original Issue: https://jira.exoplatform.org/browse/EXOGTN-1162

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list