[jboss-user] [EJB/JBoss] - Re: Deploy with two beans have same names inside two package

changemylife do-not-reply at jboss.com
Tue Sep 11 21:37:45 EDT 2007


Hi !
  The first client:
  my.com.BeanA
  The second client:
  john.com.BeanA
  I were tried:
  InitialContext ctx = new InitialContext();
  | my.com.BeanA bean = (my.com.BeanA)ctx.lookup("BeanABean/remote");
  | bean.hello();  ---> Ok!
  but:
InitialContext ctx1 = new InitialContext();
  | john.com.BeanA bean = (john.com.BeanA)ctx1.lookup("BeanABean/remote");
  | bean.hello();  ---> error!

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

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



More information about the jboss-user mailing list