[jboss-dev-forums] [Design of JMX on JBoss (JBoss/JMX)] - Problem acceding EJB in a enterprise application
ANDRIA-NTOANINA
do-not-reply at jboss.com
Thu Nov 9 03:18:41 EST 2006
I've tried to access my Enterprise bean in an Enterprise application client.
Using this 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=3984427#3984427
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984427
More information about the jboss-dev-forums
mailing list