I am trying to use a session ejb from a bean as follow
within a method
what should I do to refer the ejb?
public String creePersonne() {
String value = "correct";
System.out.println("on est dans la méthode");
try {
home = GestionPersonneUtil.getLocalHome();
GestionPersonneLocal local = home.create();
//local.creePersonne(nom,prenom);
bonjour=local.bonjour();
} catch (NamingException e) {
e.printStackTrace();
return value = "error";
} catch (CreateException e) {
e.printStackTrace();
return value = "error";
}
return value;
}
the error code
javax.naming.NameNotFoundException: GestionPersonneLocal not bound
13:24:03,102 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
here is the ejb xdoclet code
@ejb.bean name="GestionPersonne"
* display-name="gestionPersonne"
* description="Description for GestionPersonne"
* jndi-name="ejb/GestionPersonne"
* type="Stateless"
* view-type="both"
* local-jndi-name = "ejb/GestionPersonneLocalHome"