Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2110

Add flag to enable an optimization to skip serialization/deserialization of Remote interfaces running locally

    Details

      Description

      When an application uses a remote EJB3 interface the call is serialized and deserialized. While mandated by spec this is unnecessary if the EJB is running in the same JVM as the calling client. Having the option to skip serialization would bring JBoss inline with other major JEE vendors. Performance tests on a transactional application that has all business logic in stateless session bean methods is showing 20% cpu overhead just for the serialization. Having 20% more production CPU capacity is more important than claiming strict EJB3 compliance. JBoss AS response times are better too.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            wolfc Carlo de Wolf added a comment -

            The patch creates a global configuration item which can be enabled by setting system property "org.jboss.ejb3.IsLocalInterceptor.passByRef" to true.

            Show
            wolfc Carlo de Wolf added a comment - The patch creates a global configuration item which can be enabled by setting system property "org.jboss.ejb3.IsLocalInterceptor.passByRef" to true.
            Hide
            jaikiran jaikiran pai added a comment -

            Patch applied to ejb3-core 1.3 branch http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/branches/jboss-ejb3-core-1.3/ as well as EJB3 trunk.

            Show
            jaikiran jaikiran pai added a comment - Patch applied to ejb3-core 1.3 branch http://anonsvn.jboss.org/repos/jbossas/projects/ejb3/branches/jboss-ejb3-core-1.3/ as well as EJB3 trunk.
            Hide
            wolfc Carlo de Wolf added a comment -

            jboss-ejb3-core-1.3: rev 106978
            trunk: 106979

            Show
            wolfc Carlo de Wolf added a comment - jboss-ejb3-core-1.3: rev 106978 trunk: 106979
            Hide
            sergiu_pienar Sergiu Pienar added a comment -

            How can the patch be applied?

            Thank you.

            Show
            sergiu_pienar Sergiu Pienar added a comment - How can the patch be applied? Thank you.
            Hide
            dereed Dennis Reed added a comment -

            There's a typo in the property name in Carlo's comment.
            It should be "org.jboss.ejb3.remoting.IsLocalInterceptor.passByRef"

            Show
            dereed Dennis Reed added a comment - There's a typo in the property name in Carlo's comment. It should be "org.jboss.ejb3.remoting.IsLocalInterceptor.passByRef"
            Hide
            sergiu_pienar Sergiu Pienar added a comment -

            Is this patch embedded into JBoss 7 ?

            Show
            sergiu_pienar Sergiu Pienar added a comment - Is this patch embedded into JBoss 7 ?
            Hide
            mikemil Mike Miller added a comment -

            Hoping against hope - any chance this code made it into JBoss 4.2.3.GA for EJB3? Testing migration from EJB 2.x to 3.0 and this may be big.

            Show
            mikemil Mike Miller added a comment - Hoping against hope - any chance this code made it into JBoss 4.2.3.GA for EJB3? Testing migration from EJB 2.x to 3.0 and this may be big.

              People

              • Assignee:
                wolfc Carlo de Wolf
                Reporter:
                dbschofield Ben Schofield
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development