[jboss-dev-forums] [Design of EJB 3.0] - Re: SLBs cyclic dependencies

bill.burke@jboss.com do-not-reply at jboss.com
Fri Oct 6 10:11:09 EDT 2006


Yes, use the @org.jboss.annotation.IgnoreDependency annotation.  THere is also an XML equivalent

i.e. 


  | 
  | @EJB @IgnoreDependency MyEJB ref;
  | 
  | or
  | 
  | jboss.xml
  | 
  | <jboss>
  |    <enterprise-beans>
  |    <session>
  |       <ejb-name>Session2Bean</ejb-name>
  |       <ejb-ref>
  |          <ejb-ref-name>session1</ejb-ref-name>
  |          <ignore-dependency/>
  |       </ejb-ref>
  |    </session>
  |    </enterprise-beans>
  | </jboss>
  | 


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

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



More information about the jboss-dev-forums mailing list