[jboss-user] [JNDI/Naming/Network] - Re: NameNotFoundException: xxxx not bound
rzuidema
do-not-reply at jboss.com
Sun Feb 11 17:05:05 EST 2007
Found the problem, mostly pilot error, from the EJB Tutorial:
anonymous wrote :
| JNDI Bindings
| By default, session beans will bind to JNDI in the form ejbName/remote for remote interfaces and ejbName/local in the case of local interfaces. When the EJBs are deployed in an .ear file, the default jndi binding will be prepended by the name of the .ear file. So if the ear file name is foo.ear the default jndi names would be foo/EJB-NAME/remote and foo/EJB-NAME/local. You can override this behavior by defining your own @org.jboss.ejb3.LocalBinding or @org.jboss.ejb3.remoting.RemoteBinding.
|
Note the EJB name
When I used the ear name it worked:
| try {
| Properties p = new Properties();
| Context c = new InitialContext();
| return (FirstcategoryFacadeLocal) c.lookup("NewsApp/FirstcategoryFacade/local");
| }
|
|
Thanks anyway
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4014683#4014683
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4014683
More information about the jboss-user
mailing list