5 Replies Latest reply on May 15, 2007 4:00 AM by cherold

    javax.annotation.Resource

    urswag

      Which jar library does implement

      javax.annotation.Resource
      

      ?

      Thanks

        • 1. Re: javax.annotation.Resource
          ebergerson

          For that matter, how in general do you find the correct jar for any class using JBoss. I have been looking for the correct jar for javax.ejb.Stateless for 2 hours. Not a clue.

          Given the wide range of jars, and the number of locations (/lib, /client, /server//lib) they live in, really, how do you know which jar contains which classes?

          • 2. Re: javax.annotation.Resource
            weston.price

            The

            javax.annotation.Resource
            


            can be found in the jboss-ejb3x.jar of your distribution. Generally, if an annotation or a specific class is from the EJB3 API (not JBoss specific) it can be found in this module. A simple

             jar tvf jar-name.jar
            


            will usually do the trick.

            • 3. Re: javax.annotation.Resource
              ebergerson

              And in what directory you do you find the jboss-ejb3x.jar. I have looked and can't find it anywhere.

              eb@CANAL /cygdrive/c/Program Files/jboss-4.0.5.GA-all$ find . -name "jboss-ejb3x.jar"

              eb@CANAL /cygdrive/c/Program Files/jboss-4.0.5.GA-all$

              • 4. Re: javax.annotation.Resource
                weston.price

                How did you install EJB3? This jar is usually found in under the ejb3.deployer directory which in JBoss 4.0.5 is found in

                jboss-home/server/<server-config>/deploy/ejb3.deployer
                


                At the very least your find command should pick it up. Looks like something either wasn't installed right, or something was moved.



                • 5. Re: javax.annotation.Resource
                  cherold

                  Hi
                  As far as I could see the Class i in jboss-ejb3x.jar (with 'x' ).
                  This jar could be founf in the lib dir and not in the deploy.

                  regards