facebook

jboss namenotfound exception

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #224972 Reply

    Champion
    Member

    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"
    #224987 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, this is not a ME question.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: jboss namenotfound exception

You must be logged in to post in the forum log in