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")
      public class MailUnicityValidator implements Validator
       private AccountManagerService accountManagerService;

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

      So how can I inject without use @EJB annotation ?

      Thank you for your help.