title: How to use Injection Annotation
body: <p>Until to now i use (like beginner) JSF. Usually I make xhtml page and backend bean. And in backing bean I use annotation like @ManagedBean, @SessionScoped, @Application and so on. i think that is annotation for javax.faces.bean, if it is correctly that is faces annotations.</p>
  
  <p>Bath I find one tutorial on internet where one guy use annotation like @Model an most interesting in backand bean He uses the <code>@Inject</code> annotation. I find that is very useful. He use injection for Logger class and in same bean can use methods from that class. Something like these:</p>
  
  <pre><code>@Model
  public class FileUploadBean {
      @Inject Logger log;
      private Part file;
  
      public void upload(){
          ...
      }
  }
  </code></pre>
  
  <p>Are there he use enterprise java, maybe CDI and how I can use this annotation. Because when i write <code>@Inject</code> in my Backing bean have message that is ambiguous annotation.
   What i have to know and about what?</p>
  
  <p>I working with eclipse and glassfish!</p>