[jboss-user] [EJB/JBoss] - Problem when trying to access an EJB bean in an Enterprise A
ANDRIA-NTOANINA
do-not-reply at jboss.com
Thu Nov 9 03:33:26 EST 2006
I've tried to access my Enterprise bean in an Enterprise application client.
Using this code :
Code:
| Context c = new InitialContext();
| return (BeanSessionRemote) c.lookup("java:comp/env/ejb/BeanSessionBean");
|
but when I run my application I got the next Exception:
| javax.naming.NamingException: Failed to find j2ee.clientName in jndi env
|
May anybody help me?
Thanks a lot!
PS:
I'm using NetBeans 5.5
and I write in english very bad
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984431#3984431
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984431
More information about the jboss-user
mailing list