5 Replies Latest reply on May 18, 2015 9:00 AM by Martin Kouba

    @Stateless @LocalBean not discovered as a CDI Bean

    Duncan Bloem Newbie

      When adding an @Observer method to a @Stateless bean, you have to annotate with @LocalBean. However, then the stateless bean is not discovered as a CDI bean anymore.

      see cdi-test/CreditCardProcessor.java at master · dabloem/cdi-test · GitHub  and the arquillian test  cdi-test/PaymentProcessorTest.java at master · dabloem/cdi-test · GitHub .


      Any idea why the Stateless bean is not a CDI bean anymore after annotating with @LocalBean?


      Regards,

      Duncan