This content has been marked as final.
Show 1 reply
-
1. Re: Pure RMI
ron_sigal Sep 16, 2008 2:30 AM (in response to hudara)"hudara" wrote:
1. Where can I find a document describing how to do it on jBoss.
Given that you are talking about pure java RMI, instead of a JBoss facility such as JBossRemoting, I doubt that there is any document specifically about your situation. I could be wrong ..."hudara" wrote:
2. How can I solve the "anonymous port selection"
Usepublic static Remote exportObject(Remote obj, int port) throws RemoteException
orpublic static Remote exportObject(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
in java.rmi.server.UnicastRemoteObject."hudara" wrote:
3. If I execute the java.rmi.registry.LocateRegistry.createRegistry method upon server startup, and try to bind this RMI for the defual port (1099), I get an error saying that this port is already bind.
In Remoting we do this:try { log.debug("Creating registry for " + port); registry = LocateRegistry.createRegistry(port); } catch(ExportException exportEx) { log.debug("Locating registry for " + port); // Probably means that the registry already exists, so just get it. registry = LocateRegistry.getRegistry(port); }