5 Replies Latest reply on Jun 13, 2006 4:25 PM by Robert Gustafson

    Hanging threads...

    Tor Egil Jacobsen Novice

      When I query EJB3 OneToOne entitybeans, the EntityManager just keeps running and take processing speed, but don't finish executin. Is there a way to solve this problem?

      I am a newbie when it comes to EJB's and it is quite possible that I use the entity manager in a way I shouldn't.

      I have a entity bean which have a referance to another entitybean (just a local variabel: syntax - private = null; - with getters and setters: public <Entity Bean> get() - and - public set<Entity Bean>(...).
      The query looks like:
      from e
      inner join fetch e.

      When I call the createQuery(query).getResultList() method on the EntityManager, it just "hangs" and uses lots of prosessing power.

      The last debug which comes from JBoss is:
      2005-08-04 17:12:42,178 DEBUG [org.hibernate.impl.SessionImpl - 409] after transaction completion

      Anyone... Please help...