This content has been marked as final.
Show 2 replies
-
1. Re: non-JRMP server at remote endpoint???
eantoranz Apr 22, 2005 10:39 AM (in response to eantoranz)Well.. that is "inaccurate".
The RemoteObject is trying to bind itself in its constructor. -
2. Re: non-JRMP server at remote endpoint???
eantoranz Apr 22, 2005 10:44 AM (in response to 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.