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

    SFSB cycle dependency

    ebu

      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.


        • 1. Re: SFSB cycle dependency
          ebu

          Please disregard this stupid question... i've completely forgotten about setters...

          • 2. Re: SFSB cycle dependency
            misqu23

             

            "ebu" wrote:
            Please disregard this stupid question... i've completely forgotten about setters...


            I have the same problem. Putting @EJB annotation before setter don't work.

            Do you have some suggestions ?