2 Replies Latest reply on Sep 23, 2002 8:05 PM by Dirk Bogun

    blocking; recursive call

    Dirk Bogun Newbie


      I've got a problem to implement the composite pattern with CMP Entity Beans in JBoss 3.0.2.

      A parent has childs. Each child has an reference to his parent. Now the parent should deliver (recursive) all its children in a vector with following elements:

      class Component
      Integer parentId

      Vector children; // a collection of Component classes

      I have implemented a method getComponent() in the Component EJB, which traverses the children. When the first child wants to get his parent by getParent().getComponentId(), JBoss blocks and exits after a while with a timeout exception.

      Is it possible to perform a recursive call like this, without blocking?


      in referenced B

      public void doSomething(A a)