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 Name.rebind() method.
Use Context.rebind() and Context.update() methods.
It is impossible to rebind a name programmatically.
Names are bound using naming provider administrative back-end.
Use Context.rebind() method.
Use Context.rebind() method but only for dynamically bound names.
|