[ 
http://jira.jboss.com/jira/browse/EJBTHREE-77?page=comments#action_12316320 ]
     
Stefan Lindner commented on EJBTHREE-77:
----------------------------------------

Dear Bill,

Ich downloaded the current source from CVS 
http://cvs.sourceforge.net/cvsroot/jboss but I can't see any change for this 
issue. Can you help me? Will there be nightly builds for EJB2 preview?

Regards

Stefan

-----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

Reply via email to