1 Reply Latest reply on May 15, 2008 8:21 AM by dimitris

    EJB 3.0 MIgration performance

    prakash.dumbre

      We are migrating our application from ejb2.0 to ejb3.0 using annotations. we migrated most of the stateless session bean in ejn3.0 simply removing the life-cycle mehod which was in EJB2.0 and added following 3 line in each stateless session bean.

      @Stateless
      @TransactionManagement(value=TransactionManagementType.CONTAINER)
      @TransactionAttribute(value=TransactionAttributeType.REQUIRED)

      But when we deployed in JBOSS we got slow performance. We also observed that while processing the application JVM taking too much RAM and running very slow. We removed all deployment descriptor from the application beceause it is optional in EJB3.0.We are suspecting that trnsaction taking too much time.
      When we processing our application it is taking time for each ejb method. We could not able to find the cause behind this error. The performance is not good

      --prakash--

        • 1. Re: EJB 3.0 MIgration performance
          dimitris

          Delay in the application deployment phase (plus increased memory requirements) are expected, due to the fact that the appserver needs to process the annotations.

          However, slow performance after the deployment phase is something that should be investigated.

          Have you profiled your application? (comparing ejb2.0 / 3.0)