0 Replies Latest reply on Sep 25, 2014 6:09 PM by Bogdan Marinau

    How to set bean-discovery-none on ShrinkWrap

    Bogdan Marinau Newbie

      So far I've tried these two options:

       

      @Deployment

        public static Archive<?> deploy() {

        return ShrinkWrap

        .create(JavaArchive.class)

        .addClasses(TestClass.class)

        .addAsManifestResource("<beans bean-discovery-mode=all version=1.1/>","beans.xml");

        }

       

      or

       

      addAsManifestResource("META-INF/beans.xml","beans.xml");

       

      but they don't work. Is there any way I could set the bean discovery to none?