Christian Haselbach opened SPR-3048 and commented
Currently it is not (or hardly) possible with JndiRmiServiceExporter to rebind a serivce to a naming service.
This is useful if you use a naming service which does not persist its registry when it restarts.
All that is missing is the following method:
public void rebind() throws NamingException {
this.jndiTemplate.rebind(this.jndiName, this.exportedObject);
}
(The last line of prepare sould probably replaced by "rebind()".)
Alternatively, public getter for exportedObject could be provided which would allow to implement this somewhere else.
Affects: 2.0 final, 2.0.1, 2.0.2