[jboss-jira] [JBoss JIRA] Created: (JBAS-3681) EJB3.0 Session bean lookup
madan srinivas (JIRA)
jira-events at jboss.com
Thu Sep 21 06:14:02 EDT 2006
EJB3.0 Session bean lookup
--------------------------
Key: JBAS-3681
URL: http://jira.jboss.com/jira/browse/JBAS-3681
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Components: EJB3
Affects Versions: JBossAS-4.0.4.CR2
Environment: JBoss4.0.4CR2
Reporter: madan srinivas
Assigned To: Bill Burke
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list