6 Replies Latest reply on Apr 20, 2006 3:54 PM by javaos

    how to manage ejb3.0-project in eclipse

    javaos

      Is there a way to develop and deploy ejb3.0/seam - projects inside eclipse? With WTP I am able to manage ejb2.1-projects, enterprise applications and dynamic web projects. So I could deploy .ear - files to jboss from out of eclipse. Actually I'm working like it's described in "http://wiki.jboss.org/wiki/Wiki.jsp?page=UseJBossEclipseIDEToDoJBossSeamsBookingExample". I would greatly appreciate if someone could tell me a more comfortable way to do ejb3/Seam - development.

        • 1. Re: how to manage ejb3.0-project in eclipse
          kh2ouija

          I use JBossIDE.

          First go to Debug... and create a JBoss launch configuration.

          Create a normal Java project with a directory structure similar to the one in the Seam examples, as I find that one very intuitive. Make sure you have all necesary libs (seam dependencies, seam, myfaces, facelets etc) configured for your new project. Then configure the packaging build (right click on project -> properties -> packaging configuration and configure the build for an ear file (again, like in the examples). After you do a 'run packaging' on the project, if all goes well, you'll have an ear archive in a directory of the project (eg build). Right click it -> deploy to -> <your jboss configuration>. That's it, hope it helps.

          • 2. Re: how to manage ejb3.0-project in eclipse
            javaos

            @kh2ouija:

            Many thanks to you. You helped me a lot by giving me the hint to use "package configurations" to configure an .ear-archive. But If I deploy the .ear-file using the "deployment"-menuitem while running JBoss in debug-mode (using the configuration I specified in eclipse), I cannot debug my application. I set a breakpoint in a method but execution doesn't come there. Are you able to debug if you package and deploy an application the way you told me?

            • 3. Re: how to manage ejb3.0-project in eclipse

              Hello I Found an article about how to develop EJB3 + WTP plugin in Eclipse there :
              http://labo-sun.com/resource-fr-articles-1063-0-java-eclipse-j2ee-ecriture-d-application-web-et-ejb3-avec-eclipse-wtp.htm
              (but it's in french ...)

              Good luck

              • 4. Re: how to manage ejb3.0-project in eclipse
                kh2ouija

                @javaos

                I assume you launch JBoss from Eclipse, using a JBoss launch configuration. Are you sure the method where you set your breakpoint actually gets executed? Because for me it *just works*.

                • 5. Re: how to manage ejb3.0-project in eclipse
                  javaos

                  @kh2ouija:

                  Yes, I launch JBoss from Eclipse. But I'm not sure whether the method where I put the breakpoint is executed. I made a System.out which I didn't see on console. I will try another example as soon as I find the time. What counts I the fact that it works for you, because then it will work for me too. I will let you know as soon as I find out what's the problem.

                  again, many thanks for your help.

                  • 6. Re: how to manage ejb3.0-project in eclipse
                    javaos

                    @kh2ouija:

                    it works!!! I just tried another example and program execution stops at the breakpoint. Thanks a lot for your help!