4 Replies Latest reply on Apr 24, 2005 12:13 AM by Edmundo

    How do I publish a Remote Object so that stand-alone clients

    Edmundo Newbie

      I want to "publish" a RemoteObject I made so that stand-alone clients can access it through JNDI (I intend to make a "logger" for the application that is running in JBoss so remote applications can see what's going on in the server).

      When I try to bind it (from an EJB) with Context.bind(myRemoteObject, "/smile/Object");, I get:
      java.rmi.MarshalException: Invalid remote object

      Then I try with Context.bind(object, "rmi:/smile/Object"); I get:
      java.rmi.ConnectIOException: non-JRMP server at remote endpoint

      I created one business interface that extends Remote that throws RemoteException in every method.

      I created a class that extends RemoteObject and implements the former business interface.

      I compiled this class with rmic.

      What am I missing?