2 Replies Latest reply on Jun 17, 2008 3:49 PM by Cory Dahlstrom

    performance issue regarding Transaction.instance()

    Panagiotis Korros Newbie

      Hi to all,


      by profiling my application, I found out that 40% of the application time is spent on:


      org.jboss.seam.transaction.Transaction.instance()


      This method is mostly called by
      org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.isTransactionRolledBackOrMarkedRollback()
      and ends up calling Ititialcontext.lookup() to obtain the UserTransaction from JNDI.
      I am using Seam 2.0.2sp1 on Jboss 4.2.2.


      Is there any way to avoid this performance penalty?


      Kind regards,


      Panagiotis