[jboss-user] [JBoss Seam] - CustomValidator and EJB injection

drim do-not-reply at jboss.com
Tue Dec 11 16:17:43 EST 2007


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112090#4112090

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112090



More information about the jboss-user mailing list