| Author |
RMI - bind vs rebind
|
Glen Iris
Ranch Hand
Joined: Jul 13, 2011
Posts: 158
|
|
Hey Folks,
While setting up an RMI connection it came to my attention that I can use or .
The main difference from what I can tell is:
If using the rebind method, any existing binding for the name is replaced. Thus is removing the chance of an AlreadyBoundException.
So some questions-
1When the program exits, will all binding be cleanly undone?
2Can you share your thoughts on the use of either one over the other?
|
OCPJP 6, OCMJD (2/3)
|
 |
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2216
|
|
I myself didn't care about this... I just used rebind and was happy
|
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4389
|
|
|
I used rebind-method from Registry.
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Anayonkar Shivalkar
Bartender
Joined: Dec 08, 2010
Posts: 1295
|
|
Ditto here
The reason being - we are really not required to write a 'very high performance' code.
Secondly, I used to click 'close' button of my GUI window to shut down the application so, frankly, I didn't care about cleaning up - oh, and I also used rebind instead of bind.
Bottom line : everybody is happy as long as you are not breaking any 'MUST' requirement.
|
Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD)
|
 |
Glen Iris
Ranch Hand
Joined: Jul 13, 2011
Posts: 158
|
|
Thank you chaps.
|
 |
 |
|
|
subject: RMI - bind vs rebind
|
|
|