4 Replies Latest reply on Aug 6, 2002 3:26 AM by Michael

    Eclipse configuration - How to deploy

    Michael Newbie

      I'm evaluating Eclipse and I installed the Genuitec plugin to start and stop JBoss. But how do I package my ejb jar and deploy it? I am assuming I have to do this with an ANT script. I can do this but I was hoping there'd be a better way. It'd be nice if I could just click something and have it deploy automatically. Does this exist?

      The difficult part is I'm using XDoclet for the EJBs. So I have a bean class that Eclipse compiled. Now I have to run the ANT task to generate the files. Then I need to compile them, package them, and copy the jar to JBoss.


        • 1. Re: Eclipse configuration - How to deploy
          Joel Vogt Master

          >Now I have to run the ANT task to generate the files. >Then I need to compile them, package them, and copy the >jar to JBoss.

          Are you using ant for all these tasks? Or are the last few steps manual?

          • 2. Re: Eclipse configuration - How to deploy
            Michael Newbie

            >>Now I have to run the ANT task to generate the files. >>Then I need to compile them, package them, and copy the >>jar to JBoss.

            >Are you using ant for all these tasks? Or are the last few steps manual?

            Right now I'm mainly working in JBuilder. But I'm using ANT to build (generate files with XDoclet, compile, and build ejb.jar) and deploy (copy jar to JBoss). This works in ANT and also in JBuilder using the ANT build files.

            Now I'd like to do something similar with Eclipse so I can drop JBuilder. In Eclipse, I can right click on the ANT file and run it, selecting the target, etc. This is a problem because I need to generate the XDoclet files BEFORE compiling and then deploy AFTER compiling. So far I don't see an easy way to do this with Eclipse. From what I've seen so far, ANT integration with Eclipse is more work than switching to a DOS window. With JBuilder, JBuilder has hooks for ANT during the build. So you can say "pre-compile execute ANT target x" "post-compile execute ANT target y". Therefore I never invoke ANT manually, it's all automatic. It's very slick and should be relatively easy to do.

            So my question is how are people deploying their Eclipse projects to JBoss?

            Michael

            • 3. Re: Eclipse configuration - How to deploy
              Brad Leupen Newbie

              i use Eclipse but i do not use XDoclet. i edit my files in place and use the .ear/.war/.jar folder scheme to deploy my application. this approach is less automated but allows some nice things to happen, such as hot-swapping EJB code in the middle of a debugging session. the only real pain is maintaining the ejb deploy descriptor.

              b

              • 4. Re: Eclipse configuration - How to deploy
                Michael Newbie

                That is not a bad idea, I'm going to try it that way. Thanks.