[jboss-user] [JBoss Seam] - EntityManager injection in Authenticator class

piotr.walczyszyn do-not-reply at jboss.com
Sat Feb 3 09:26:02 EST 2007


I have a problem with injection of EntityManager in my Authenticator class. When I login my EntityManager variable is null and I get NPE. In my environment I'm using jboss-4.0.5 and JSF 1.2 RI. I'm wondering if my authenticator class shouldn't be SFSB or SLSB in this case?

Here is part of my Authenticator class:
@Name("authenticator")
  | public class Authenticator {
  | 
  | 	@Logger
  | 	Log log;
  | 
  | 	@Out(required = false, scope = SESSION)
  | 	private User user;
  | 
  | 	@PersistenceContext
  | 	private EntityManager em;
  | 
  | 	public boolean authenticate(String username, String password,
  | 			Set<String> roles) {
  | 

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

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



More information about the jboss-user mailing list