2 Replies Latest reply on Jul 30, 2008 7:13 AM by J-C jc

    What's about embeddable EJB3

    J-C jc Apprentice

      I try to migrate my EJB3 application from JBoss 4.2.2.GA with JDK1.5 to JBoss 4.2.3.GA with JDK 1.6.

      Unit tests are executed in standalone with embeddable EJB3. Integration tests are executed within JBoss AS. Integrations tests works fine.

      Unfortunately, for unit tests I used an old version of JBoss embeddable EJB3. It does not works in JDK 1.6. I thought micro container will replace the embeddable EJB3.

      I'd like to continue perform unit testing in standalone mode. Is there someting to replace the embeddable EJB 3 container ?

      How do you unit tests your EJB 3 session bean ?

        • 1. Re: What's about embeddable EJB3
          Carlo de Wolf Master

          The short answer is: there is nothing yet to replace the old Embeddable EJB3 in a way that's usable for current scenarios.

          Embeddable EJB3 Alpha 9 is an AS 5 Alpha preview (thus has Micro Container in it). There already where some incompability issues with AS 4 and when AS 5 started moving forward it was impossible to maintain an AS 4 compatible E-EJB3. So from your use case scenario it became unusable.

          You can read more on this in the sticky: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=103397

          Right now we're working on EJB3 Standalone, which targets unit testing. But it'll only be compatible with AS 5, so even an Alpha release there will not be usable.

          In AS 4 we use AS itself for tests, in AS 5 we got AS Micro which we augment with enough services to handle most EJB deployments. This will be the basis for EJB3 Standalone.

          • 2. Re: What's about embeddable EJB3
            J-C jc Apprentice

            Thanks for the answer.

            For me it is acceptable to unit tests some EJB 3 with Jboss microcontainer even if I deploy in JBoss AS 4.2.3. For unit tests I just use basic EJB3 features.

            I also have integration tests in JBoss AS.

            I have tried embedded JBoss beta 3 with JDK 1.6 using the magic jvm arguments (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=132549)

            That works fine ...