4 Replies Latest reply on Aug 20, 2004 12:20 PM by Yueming Shi

    Is there a way to download stub jar for an deployed EJB in J

    Yueming Shi Newbie

      Hi there,
      I'm trying to get a stub jar for an EJB, but couldn't find the place. Can someone tell me where I can do this in web-console or jmx-console or via API?

      Thanks in advance!
      Yueming

        • 1. Re: Is there a way to download stub jar for an deployed EJB
          Darran Lofthouse Master

          Stub jars are not required, the client just needs jbossall-client.jar and the home and remote interfaces of the component.

          • 2. Re: Is there a way to download stub jar for an deployed EJB
            Yueming Shi Newbie

            Just like you said, the client just needs jbossall-client.jar and the home and remote interfaces, what I'm trying to do is get this home and remote interfaces from JBoss for client usage. Usually a stub jar can contain those things, I think in JBoss case I used the wrong word since JBoss is using Dynamic Proxy. But that Jar which contains home and remote interfaces plus maybe other dependent classes is indeed very useful, other application servers do generate this Jar(also this Jar is also mentioned in J2EE spec and it states that it should be implementation specifc). So I'm wondering if JBoss can do the same thing? For a client tooling environment, a use case would be a user browse for EJBs in JBoss, and he selects one and imports that Jar in his workspace and develop a client.

            Thanks,
            Yueming

            • 3. Re: Is there a way to download stub jar for an deployed EJB
              Darran Lofthouse Master

              You will need to create the jars for the clients yourself so that they just contain the required classes.

              If you are going to mention the specs, which spec (title and version), and which section are you referring to?

              • 4. Re: Is there a way to download stub jar for an deployed EJB
                Yueming Shi Newbie

                Ok, but it will be very hard for the client side to assemble this Jar because the user who consumes the EJB probably is not the one who develops this EJB, so the only way is resorting to the runtime, and I just think JBoss might do that for the client.
                About the spec, I was wrong, "Because this JAR file is not covered by the J2EE specification, it is implementation-specific, intended only for the Application Server.", but as I said, many servers do generate this Jar.

                Thanks for your reply!
                Yueming