2 Replies Latest reply on Apr 22, 2005 10:44 AM by eantoranz

    non-JRMP server at remote endpoint???

    eantoranz

      What's the meaning of that?

      That happens when I try to bind a RemoteObject in the JBoss JNDI registry (from inside a EJB).

        • 1. Re: non-JRMP server at remote endpoint???
          eantoranz

          Well.. that is "inaccurate".

          The RemoteObject is trying to bind itself in its constructor.

          • 2. Re: non-JRMP server at remote endpoint???
            eantoranz

            Logger is a RemoteObject

             public Logger() throws SmileException {
             // me registro en JNDI
             try {
             EJBUtil.setResource(this, Logger.JNDI_NAME);
             System.out.println("Logger registrado");
             } catch (NamingException e) {
             e.printStackTrace();
             throw new SmileException("Couldn't bind to the Naming service");
             }
             }
            

            EJBUtil.setResource() will bind the resource (this instance of logger) to "rmi:/Smile/Logger" (in this example). It will check for an existing context. If there's none, it will create a InitialContext.