Details
-
Task
-
Resolution: Obsolete
-
Major
-
JBossAS-4.0.4.CR2
-
None
-
Medium
Description
I get ejb not bound exception when i look up session bean
sessoin bean jndi name is mentioned using annotation in hte code as
@Stateless
@RemoteBinding(jndiBinding="ejb/remote/FileDetails")
the look up code is
Properties env = new java.util.Properties();
env.setProperty("java.naming.provider.url", "http://localhost:8080/invoker/JNDIFactory");
env.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
env.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
InitialContext ctx = new InitialContext(env);
FileDetailsClientBean filesession = (FileDetailsClientBean)ctx.lookup("ejb/remote/FileDetails");
filesession.addFileDetails();
Pls help me resolve this and let me know if the code is correct