5 Replies Latest reply on Oct 15, 2013 10:23 AM by Stephen Coy

    @Inject in @WebServiceClient does not work

    Frank Langelage Master

      I have CDI enabled class:

      public class Settings extends SessionBase


      It's injected at different classes within the same war file successfully.

      But injection in a WebServiceClient, also in the same war file

      public class ItemsService extends Service
          private Settings settings;

      does not work. Variable this.settings is null. No error message.

      FacesContext.getCurrentInstance().getApplication().getELResolver().getValue( FacesContext.getCurrentInstance().getELContext(), null, "settings" ) works without problems.


      Is there a known restriction?