For now, ApacheDS ContextFactoryService is a singleton. We could let users instantiate multiple instances by specifying 'instanceId' configuration property. With 'instanceId', users could choose an appropriate instance to operate with.
Here's an example that shuts down an instance whose ID is 'instance-3':
new InitialContextFactory( new ShutdownConfiguration( 'instance-3' ).toJndiEnvironment() );
Description
For now, ApacheDS ContextFactoryService is a singleton. We could let users instantiate multiple instances by specifying 'instanceId' configuration property. With 'instanceId', users could choose an appropriate instance to operate with.
Here's an example that shuts down an instance whose ID is 'instance-3':
new InitialContextFactory( new ShutdownConfiguration( 'instance-3' ).toJndiEnvironment() );
Fix for DIREVE-172:
* Added Configuration.instanceId property so that user can speficy the id of ContextFactoryService instance.
* Added ContextFactoryConfiguration.getInstanceId() so that user can find out which instance it is working with.
* Added ContextFactoryService.getInstance() methods and ContextFactoryService.getAllInstances().