'rmiregistry' runs on port 1099 by default. You can specify another port
by supplying it as the argument ('rmiregistry [port] &'). The biggest
difference between Windows and Unix (Linux), is that Unix only lets
'root' use ports below 1024.
An even better option for many apps is to run the registry right in their
own JVM. The java.rmi.LocateRegistry class has static methods that will
try to find a registry on a given port; if unsuccessful it will create an
instance for you within your JVM.
The only reason to run 'rmiregistry' separately is if you need to supply
its functionality as a shared resource (like DNS).
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 2/7/01, 12:11:20 AM, Merwin Yap <[EMAIL PROTECTED]> wrote
regarding RMI in linux:
> Not a question regarding tomcat but maybe someone might know...
> Im using linux, jdk1.2.2 and tomcat. I'm having a problem with rmi
> registry... how do you start rmi regsitry?
> I read that its different from windows and it has something to do with
> the ports. Could anyone explain it more to me...
> like how would i bind it to a port i like to use like 8080 or
> something. It said something like "rmiregistry &" which seem
> to work but my binder code thows a ConnectException or
> ServerException...
> Thanks,
> Merwin
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]