javax.naming.NameNotFoundException: PremierEJB3 not bound
bonjour
je suis le tuto que voici
http://www.eclipsetotale.com/article...c_Eclipse.html
il y a deux chose le jndi.properties ne semble pas marcher j'ai donc utiliser le
Code:
1 2 3 4 5
|
java.util.Hashtable ht=new java.util.Hashtable();
ht.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
ht.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
ht.put("java.naming.provider.url", "localhost"); |
mais j'ai une erreur
Code:
1 2 3
|
javax.naming.NameNotFoundException: PremierEJB3 not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) |
le nom n'est pas bon pourtant c'est bien le nom de class de l'ejb.
pourquoi cette erreur?
et comment configurer avec le jndi.properties correctement?