posted 14 years ago
without seeing you code , I can only assume you are trying to bind your servant on a naming service.
what I would normally do, is to always use "rebind(......)" method(even for the first time) instead of "bind(........)" method.
if you use bind()... then try to bind() again, it will give you alreadyBind error
if you use rebind() initially, then rebind() again, it will just let you override the old reference with new one
the catch is , you code will always work, but it allows multiple instance of servant running, bad or good?
it depends how you control it.
so simply call rebind() should solve your problem