[jboss-user] [JNDI/Naming/Network] - Re: JBoss 4.2 ejb not bound

jaikiran do-not-reply at jboss.com
Sun Jun 17 20:55:23 EDT 2007


Without looking at your configuration files and the EJB/lookup code, i am just guessing that your bean is bound to the Global JNDI namespace, by the jndi name "env/ejb/CalcHome" (the remote home) and "env/ejb/CalcLocalHome" (for the local home). So if you are looking up the remote interface then your lookup code should look like:


Context ctx = new InitialContext();
  | //remote bean lookup
  | Object obj = ctx.lookup("env/ejb/CalcHome");
  | CalcHome home = (CalcHome) PortableRemoteObject.narrow(obj,CalcHome.class);
  | //create the remote bean
  | bean = home.create();


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

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



More information about the jboss-user mailing list