[weld-issues] [JBoss JIRA] Created: (WELD-250) @SessionScoped components cannot make use of non Serializable producer beans like EntityManager producers

Emmanuel Bernard (JIRA) jira-events at lists.jboss.org
Tue Nov 3 13:22:05 EST 2009


@SessionScoped components cannot make use of non Serializable producer beans like EntityManager producers
---------------------------------------------------------------------------------------------------------

                 Key: WELD-250
                 URL: https://jira.jboss.org/jira/browse/WELD-250
             Project: Weld
          Issue Type: Bug
            Reporter: Emmanuel Bernard


Reported at Pete's request

public class Databases {
	@Produces
	@PersistenceContext(unitName = "users")
	@Users
	EntityManager userDatabaseEntityManager;
}

@Named
@SessionScoped
public class Identifier implements Serializable {
	private boolean logged;
	private User user = new User();
	@Inject @Users private EntityManager usersEntityManager;


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list