[jboss-user] [EJB 3.0] - Re: Cyclic dependency in EJB3 not resolved by JIRA EJBTHREE-
jaikiran
do-not-reply at jboss.com
Sat Jun 7 04:26:08 EDT 2008
"omerlin" wrote :
| We have the problem in both 4.2.2 & 5.0Beta3 versions.
| We have currently no solution,no working workaround.
|
Remove the class level @EJBs declaration. And let your beans look like this:
| Hello1Bean class:
|
| @Stateless
| public class Hello1Bean implements Hello1 {
|
| @IgnoreDependency
| @EJB(name="ejb/Hello2")
| private Hello2 hello;
|
| }
|
| Hello2Bean Class :
|
| @Stateless
| public class Hello2LocalBean implements Hello2Local {
|
| @IgnoreDependency
| @EJB(name="ejb/Hello1")
| private Hello1 hello;
|
| }
|
|
Whatever, you are trying to do with the @EJBs at the class level can be achieved by this change.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156452#4156452
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156452
More information about the jboss-user
mailing list