rmi, two binding methods, what differences?
- From: "John_Woo" <john_woo@xxxxxxxxxx>
- Date: 20 Aug 2006 05:19:04 -0700
Hi,
I'm wondering, which better/differences, in the following two rmi
binding methods:
A.
java.rmi.registry.LocateRegistry.createRegistry(defport);
Services server = new ServicesImpl();
Naming.rebind("rmi://ahost:aport/aService", server);
B.
Registry registry = LocateRegistry.getRegistry();
registry.rebind("aName", astubObject);
It seems A has to use a port, which may need a special setting over
firewall; for B, what's the port number?
--
Thanks
John
Toronto
.
- Follow-Ups:
- Re: rmi, two binding methods, what differences?
- From: staudinger
- Re: rmi, two binding methods, what differences?
- Prev by Date: Re: xml parsing.............
- Next by Date: Re: String update problem
- Previous by thread: reverse an array
- Next by thread: Re: rmi, two binding methods, what differences?
- Index(es):
Relevant Pages
|