Re: How To get port of the RMI Server?
Peter Jones <[email protected]> Fri, 17 Apr 2009 15:04:03 -0400
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <20090417190403.GA18508@east> |
On Fri, Apr 17, 2009 at 12:52:24PM +0800, Niclas Hedhman wrote: > On Fri, Apr 17, 2009 at 5:49 AM, Tony Obermeit <[email protected]> wrote: >> When using the constructor that allows a specific port number to be >> specified, what happens if you want to have multiple remote objects >> (say RemoteEmployee, RemoteDepartment, RemoteJobClassification, >> etc)... Do you need a separate port for each remote object, or is it >> ok to have multiple objects on a single port. [snip] > > By default, RMI will manage ports for you. There can be any number of > remote objects per port, they all have an ObjectID. Yes-- as long as they are all exported with equivalent (or no) socket factories (and all in the same JVM/process, of course). -- Peter =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html