4 Replies Latest reply on Apr 10, 2007 9:02 PM by puddlor

    The deployment of EJB3.0 is too slow, 5m for each bean

      It will use 5min to deploy a session bean on AS 4.2.0 RC1,

      Is this any way to speed this up?


      thanks for help.

        • 1. Re: The deployment of EJB3.0 is too slow, 5m for each bean

          I find the problem.


          Wrong but can work in JBOSS( not in Weblogic):
          @Stateless
          public class A implements ASvr, ALocal{}
          @Remote
          public interface ASvr{}
          @Local
          public interface ALocal{}


          Correct:
          @Stateless
          @Remote(ASvr.class)
          @Local(ALocal.class)
          public class A implements ASvr, ALocal{}
          public interface ASvr{}
          public interface ALocal{}

          • 2. Re: The deployment of EJB3.0 is too slow, 5m for each bean

            No, the first is correct.

            Sometimes I get very slow deployments when running in debug mode under Eclipse. This is reported as a bug somewhere but there is no fix as far as I know.

            Regards

            Felix

            • 3. Re: The deployment of EJB3.0 is too slow, 5m for each bean
              bdecoste

              Either annotation implementation is supported - you can annotate either the interface or the bean.

              • 4. Re: The deployment of EJB3.0 is too slow, 5m for each bean

                 

                "fhh" wrote:
                No, the first is correct.

                Sometimes I get very slow deployments when running in debug mode under Eclipse. This is reported as a bug somewhere but there is no fix as far as I know.

                Regards

                Felix


                Felix, the eclipse didnt run in debug mode, but it is still very slow. I think that macosx maybe a reason. I run everything on a osx. my collegue deploys the the first code in 2min on windows, otherwise it takes 5min on mine.

                the second is ok, it only takes 10 second. however, when I add a lot of real things in the second code, deployment become very slow too. it will take 2min then.

                finally, I move to weblogic 10 for developing. I have 10s ejb3.0 on my application. I cant tolerate at least 10mins for each deployment.