8 Replies Latest reply on Sep 9, 2010 12:27 AM by Andy Gibson

    why @Inject @Named is not working

    nimo stephan Master

      I have this:


      @Inject @Named Users findUser;



      and the compiler says:


      "No bean is eligible for injection to the injection point"



      when using this instead:


      @Injec Users findUser;



      the compiler does not complain.


      But I want to reference findUser by


      #{findUser}



      and have to use the @Named - why does this not work?



      (Users is a EntityBean, but I do not want to persist a new instance, I only want to use it as a plain object)