5 Replies Latest reply on Sep 7, 2005 7:10 AM by nectodev

    EJB3 Entity bean support in Jboss 4.0.3RC2

    nectodev

      I have installed Jboss4.0.3RC2 using the installer. There seems to be a support for Session Beans because I can find classes related to the @Stateless and @Stateful but not @entity in jboss-ejbx.jar file.

      Am i missing something? I cant even compile classes annotated with @Entity. How can i create entity beans in ejb3 in Jboss4.0.3RC2?

        • 1. Re: EJB3 Entity bean support in Jboss 4.0.3RC2
          chrismalan

          I am at work and answering this off the top of my head without access to my set-up at home.

          It is possible to compile ejb3 entity beans with 4.0.3RC2. Possibly the classes are in jars in the IDE, not the application server. I used JBossIDE1.5M1. I had to put jboss-ejb3x.jar and ejb3-persistence.jar in my classpath. If my memory serves me correctly they are in the JBossIDE somewhere. Otherwise they are in the AS, but not in a directory which is on the classpath.

          Hope this helps.
          Chris

          • 2. Re: EJB3 Entity bean support in Jboss 4.0.3RC2
            nectodev

            Chris, thanks for taking time out to respond.
            I have opened both the jboss-ejb3x.jar in both the Jboss4.0.3RC2 and also the version of jboss-ejb3x.jar that gets included in the project when u inlcude jboss ejb3 libraries option via jboss ide plugin. Both do not have the Entity.class but have the Stateless.class and Stateful.class in the jars.

            BTW, i am using JBossIDE1.5M2 version. All the questions on ejb3 entity beans is proof positive that others are able to compile and deploy....

            • 3. Re: EJB3 Entity bean support in Jboss 4.0.3RC2
              nectodev

              chris...u r right.... the jbosside1.5m1's jboss-ejb3x.jar has the Entity.class. However i am not sure if i have to replace the jboss4.0.3rc2's jboss-ejb3x.jar file as well.....as that jar file does not have the Entity.class in it.

              thanks for the pointer

              • 4. Re: EJB3 Entity bean support in Jboss 4.0.3RC2
                jadeking

                @Stateless , @Stateful and @Entity is in
                jboss-EJB-3.0_RC1\lib\ejb3.deployer\ejb3-persistence.jar

                you can download file jboss-EJB_3.0_RC1.zip from this website


                Jade King

                • 5. Re: EJB3 Entity bean support in Jboss 4.0.3RC2
                  nectodev

                  Thanks .. I appreciate the help...looks like the latest builds and dev releases of jboss AS and IDE are messed up..