[jboss-user] [EJB 3.0] - SFSB cycle dependency

ebu do-not-reply at jboss.com
Sun Sep 28 13:55:06 EDT 2008


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.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179239#4179239

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4179239



More information about the jboss-user mailing list