[ http://jira.jboss.com/jira/browse/EJBTHREE-77?page=comments#action_12316322 ] Stefan Lindner commented on EJBTHREE-77: ----------------------------------------
Dear Bill, I just want to thank you for your very fast fix for this problem. And congratulation for your work for EJB3. Your preview releases are very helpful for us and work very well at this early stage of standardizatiion. Once again: thank you and all other contributors. -----UrsprÃngliche Nachricht----- Von: Bill Burke (JIRA) [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. Februar 2005 18:55 An: Stefan Lindner Betreff: [JBoss JIRA] Closed: (EJBTHREE-77) EntityManagerHibernateSessionFactory missing [ http://jira.jboss.com/jira/browse/EJBTHREE-77?page=history ] Bill Burke closed EJBTHREE-77: ------------------------------ Resolution: Duplicate Issue fixed in CVS. Duplicate bug -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira > EntityManagerHibernateSessionFactory missing > -------------------------------------------- > > Key: EJBTHREE-77 > URL: http://jira.jboss.com/jira/browse/EJBTHREE-77 > Project: EJB 3.0 > Type: Bug > Components: EJB3 Extensions > Versions: Preview 3 > Environment: JDK 1.5_01, WinXPSP2, JBOss 4.0.1SP1, EJB3.0Preview3, CA-Ingres > DBMS > Reporter: Stefan Lindner > Priority: Critical > > > I have a statefull session bean. With > @Inject > private EntityManager manager; > I have a client application that uses this bean. Everything works fine. After > some time the session bean gets passivated. Now, when calling a method of the > session bean the bean gets re-activated (can bee watched through the > following code). > @PostActivate > public void postActivate() > Now, eny call concerning the EntityManager manager e.g. > manager.contains(<a Entity object>) > leads to an error message like this: > java.lang.RuntimeException: javax.naming.NameNotFoundException: > EntityManagerHibernateSessionFactory not bound > A look into the source code (taken from CVS today) of > org.jboss.ejb3.EJBContainer shows the following code: > public static final String ENTITY_MANAGER_HIBERANTE_SESSION_FACTORY = > "EntityManagerHibernateSessionFactory"; > protected void resolveInjectors() throws Exception > { > Context ctx = new InitialContext(); > enc = ThreadLocalENCFactory.create(ctx); > ThreadLocalENCFactory.push(enc); > try > { > Thread.currentThread().setContextClassLoader(classloader); > Util.createSubcontext(ctx, Container.ENC_CTX_NAME + "/env"); > if (getHibernateSessionFactory() != null) > { > NonSerializableFactory.rebind(enc, "EntityManager", new > EntityManagerImpl(getHibernateSessionFactory())); > NonSerializableFactory.rebind(enc, > ENTITY_MANAGER_HIBERANTE_SESSION_FACTORY, getHibernateSessionFactory()); > I cannot find any hint about this EntityManagerHibernateSessionFactor. nor > JBoss, neither Hibernate. Even google shows 0 hits. What am I doing wrong? Or > is this a bug? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
