3 Replies Latest reply on Oct 24, 2001 6:26 PM by nhebert

    Deployment of JARs

    frebe73

      Hello,

      I want to deploy one bean (.jar) from an application (.ear) into JBoss. This bean use other beans in the application. I solve this by including all the uses remote and home interfaces in the jar file.

      Is there any other way? Or does JBoss only find classes in lib/ext and the current JAR-file?

      /Fredrik Bertilsson

        • 1. Re: Deployment of JARs
          cosmonaut


          > I solve this by including all the uses
          > remote and home interfaces in the jar file.
          > Is there any other way? Or does JBoss only find
          > classes in lib/ext and the current JAR-file?

          Yes, IIRC it should be possible with an ejb-link. Check out the DTDs and instructions for ejb-jar.xml and jboss.xml.

          • 2. Re: Deployment of JARs
            benwilcock

            Hava a look at the answer I gave Rich on a similar problem. It may be the answer you are looking for (I hope).

            Good Luck

            Ben

            http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/

            • 3. Re: Deployment of JARs
              nhebert

              Fredrik,

              I would advise against using the lib/ext "trick".
              It is a slippery slope.

              If you are only interested in deploying to a single
              JBoss instance or not writting portable EJBs then
              so be it.

              When JBoss 3.0 arrives with clustering, this "trick"
              may not be so handy. You will have to put your jar(s)
              in every nodes lib/ext. If you deploy as you
              described with necessary dependent Home and Remotes
              you can be deploy on ANY one node and have visibility.

              Works that way with clustered WebLogic and WebSphere
              and should work when clustering happens in 3.0...

              Cheers,

              Noel.