[jboss-user] [EJB 3.0] - Re: NameNotFoundException
itsme
do-not-reply at jboss.com
Fri Nov 21 07:35:40 EST 2008
The default scheme for JNDI names in JBoss is
<ear>/<bean-class-simple-name>/remote for remote interfaces. For local interface change to
<ear>/<bean-class-simple-name>/local
So your code should look like this
| Object obj = ic.lookup(Bean.class.getSimpleName()+"/remote");
|
Hope this helps.
Sandor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4191234#4191234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4191234
More information about the jboss-user
mailing list