2 Replies Latest reply on Dec 17, 2007 6:53 AM by Pete Muir

    CustomValidator and EJB injection

    Jeremy MARC Newbie

      Hi all,

      I would like to do a custom Validator.

      @Name(value = "validators.checkMailUnicity")
      @org.jboss.seam.annotations.faces.Validator
      public class MailUnicityValidator implements Validator
      {
       @EJB
       private AccountManagerService accountManagerService;
      
       ....
      
      
      


      I need to inject an EJB with @EJB annotation. But it seems that it doesn't work
      (NullException).

      So how can I inject without use @EJB annotation ?

      Thank you for your help.