[jboss-user] [EJB/JBoss] - Re: migration to 4.0.4 GA deployment problem --- MBeans wait

amitguz do-not-reply at jboss.com
Tue Jul 25 10:56:50 EDT 2006


yes I finaly solved it.
in the places I have this problem of mutual dependecny I remove the injection in one side and use lookup instead.


  | @Remote ({YY.class})
  | public @Stateless class YYBean implements YY {
  |         @PostConstruct
  | 	public void PostConstruct() {
  | 		Context c;
  | 		try {
  | 			c = new InitialContext();
  | 			Object reference = (Object)c.lookup("ear/XXX/local");
  | 			XXX xBean = (XXX)PortableRemoteObject.narrow(reference, XXX.class);
  | 					
  |                       } catch (Exception e) {
  | 			Logger.getLogger(this.getClass()).error("failed to XXX",e);
  | 		}
  | 
  | 
  | 	}
  | }
  | 

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

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



More information about the jboss-user mailing list