2 Replies Latest reply on Sep 30, 2009 6:52 PM by Marcin Misiewicz

    SFSB cycle dependency

    Yevgen Bushuyev Newbie

      Hi
      Could you please explain me how can i make two sfsbs aware of each other?
      Like this:

      @Stateful
      class A {
      
       @EJB
       private B b;
      
      }
      
      
      @Stateful
      class B {
       @EJB
       private A a;
      
      }
      


      But afai understand the spec, in this case i'll have two instances of bean A and b wan't be able to access the state of the 'initial' A bean.

      Unfortunately i can't try this sample because cycle deps doesn't work in jboss and workaround provided in https://jira.jboss.org/jira/browse/EJBTHREE-1074 didn't help.

      Your help is highly appreciated.