Hi,
I've got several Stateless beans which have cyclic dependencies between them. When
deploying my .jar I get several errors saying me that kind of thing :
| ObjectName: jboss.j2ee:jar=escapek.jar,name=TestServiceBean,service=EJB3
| State: NOTYETINSTALLED
| I Depend On:
| jboss.j2ee:jar=escapek.jar,name=RegistryServiceBean,service=EJB3
|
I've read that using @IgnoreDependency or specifying it in jboss.xml should fix the
problem.
As i would like my code to be independent as possible I choose to add a jboss.xml in
META-INF/ of my .jar:
| <jboss>
| <enterprise-beans>
| <session>
| <ejb-name>TestServiceBean</ejb-name>
| <ejb-ref>
| <ejb-ref-name>RegistryServiceBean</ejb-ref-name>
| <ignore-dependency/>
| </ejb-ref>
| </session>
| <session>
| <ejb-name>CmdbServiceBean</ejb-name>
| <ejb-ref>
| <ejb-ref-name>RepositoryServiceBean</ejb-ref-name>
| <ignore-dependency/>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>SecurityServiceBean</ejb-ref-name>
| <ignore-dependency/>
| </ejb-ref>
| </session>
| <session>
| <ejb-name>RegistryServiceBean</ejb-name>
| <ejb-ref>
| <ejb-ref-name>RepositoryServiceBean</ejb-ref-name>
| <ignore-dependency/>
| </ejb-ref>
| <ejb-ref>
| <ejb-ref-name>SecurityServiceBean</ejb-ref-name>
| <ignore-dependency/>
| </ejb-ref>
| </session>
| </enterprise-beans>
| </jboss>
|
This doesn't work. For example, TestServiceBean is not deployed even by having
specified ignore-dependency in jboss.xml.
I'm using EJB3-RC9 on Jboss 4.0.5.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990500#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...