4 Replies Latest reply on May 26, 2009 10:14 PM by mikewse

    scanning jars in classpath

    mikewse

      I'm using Webbeans RI through webbeans-servlet.jar from PREVIEW1. It seems it will only scan for beans in WEB-INF/classes, and not from jar files in WEB-INF/lib.


      Is this correct, and are there plans for supporting jar files?


        • 1. Re: scanning jars in classpath
          nickarls

          Hmm, I can't directly find a spec-reference but one would think it could be problematic if every single JAR in the classpath would be scanned and have the classes converted to Beans.


          But it would probably be handy for a way of listing a set of JARs to include.


          Pete is the bootstrap-wizard so he can probably give more insight...

          • 2. Re: scanning jars in classpath
            mikewse

            Ah, just found the definition in the
            spec:


            Section 12.1 says that I must have a META-INF/beans.xml file in every archive to be scanned. I'll go ahead and try that!

            • 3. Re: scanning jars in classpath
              mikewse

              Unfortunately that didn't seem to work. Any comments on when this will be supported in the RI?

              • 4. Re: scanning jars in classpath
                mikewse

                I had a look in the source which seems to confirm that this is not implemented. (side note: OpenWebBeans does, using the scannotation lib)


                I added WBRI-272 to JIRA and hope for the next release ;-).