-
1. Re: Bi-directional dependency between two stateless session beans
jaikiran Feb 13, 2010 10:27 AM (in response to andy.miller)Cyclic injection of @EJB is a known problem with JBoss EJB3. You will have to add a @IgnoreDependency on either one side of the injection to get past this. Here's a thread which discusses the same issue http://community.jboss.org/message/366797
-
2. Re: Bi-directional dependency between two stateless session beans
andy.miller Feb 13, 2010 11:38 AM (in response to jaikiran)jaikiran wrote:
Cyclic injection of @EJB is a known problem with JBoss EJB3. You will have to add a @IgnoreDependency on either one side of the injection to get past this. Here's a thread which discusses the same issue http://community.jboss.org/message/366797
Thanks Jaikiran. I'll make that change to the code. As always, your help is greatly appreciated.
-
3. Re: Bi-directional dependency between two stateless session beans
wolfc Feb 17, 2010 8:55 AM (in response to andy.miller)1 of 1 people found this helpfulNote that a cyclic dependency with two stateless beans should deploy just fine, because the real bean instance is only needed when the first invocation goes through.
I'm scheduling in https://jira.jboss.org/jira/browse/EJBTHREE-1074 to address this problem.
-
4. Re: Bi-directional dependency between two stateless session beans
andy.miller Feb 17, 2010 9:57 AM (in response to wolfc)wolfc wrote:
Note that a cyclic dependency with two stateless beans should deploy just fine, because the real bean instance is only needed when the first invocation goes through.
I'm scheduling in https://jira.jboss.org/jira/browse/EJBTHREE-1074 to address this problem.
That's great. The @IgnoreDependency did work for me in the mean time.