This content has been marked as final.
Show 2 replies
-
1. Re: Problem with jndi bindings: my SLSB's not bound
blomqvie Nov 11, 2006 7:49 AM (in response to blomqvie)The lookup goes actually like this:
th=(TuoteHallintaRemote)context.lookup(TuoteHallintaRemote.class.getName());
not
th=(TuoteHallintaRemote)context.lookup("TuoteHallintaRemote.class.getName()"); -
2. Re: Problem with jndi bindings: my SLSB's not bound
jaikiran Nov 12, 2006 1:43 AM (in response to blomqvie)If you have not specified any JNDI name then the bean by default gets bound to appName/BeanName/remote for remote interface or appName/BeanName/local. So assuming your application name is myApp and you are looking up a remote interface, the code will look like:
Context ctx = new InitialContext(); TuoteHallintaRemote remote = (TuoteHallintaRemote) ctx.lookup("myApp/TuoteHallintaBean/remote");