Forums Register Login

Exporting Objects on same port as RMI Registry

+Pie Number of slices to send: Send
Hi:

I am running Rmiregistry on port 1099. I have a couple of remote objects. Is it possible for me to export all the remote objects on the 1099 ?

If I try to do that I get an exception saying port already in use.
Here I am doing UnicastRemoteObject.exportObject(this,1099);

But if I do UnicastRemoteObject.exportObject(this) then it works fine.

If anybody can explain me how this works, I would be grateful.
+Pie Number of slices to send: Send
protected UnicastRemoteObject(this)

Creates and exports a new UnicastRemoteObject object using an anonymous port.
I need a new interior decorator. This tiny ad just painted every room in my house purple.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1462 times.
Similar Threads
RMI with JavaSE 6 - UnicastRemoteObject.exportObject(Remote object) fails
Shoud I persist the RMI registry and server ports?
RMI 002
Client/Server command line options
RMI is specification or implementation?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:20:05.