Skip to content

Add rebind method to JndiRmiServiceExporter to allow rebinding the service to a naming service [SPR-3048] #7734

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions