Use Name.rebind() method.
It is impossible to rebind a name programmatically.
Names are bound using naming provider administrative back-end.
The Context.rebind() will not work here.
Instead use Context.unbind() to delete binding and add new binding with the same
name using Context.bind()
Use Context.rebind() and Context.update() methods.
Use Context.rebind() method but only for dynamically bound names.
Use Context.rebind() method.
|