Static Service

Config static service in dubbo

Sometimes we want to manually manage the registration and deregistration for service provider, we need to set registry to non-dynamoic mode.

<dubbo:registry address="" dynamic="false" />


<dubbo:registry address="" />

dynamic mode is disabled when service provider initially registers, then we need to enable it manually. When disconnects, the setting will not be deleted automatically, need to disable it manually.

For a third party service provider like “memcachd”, it can directly write the address information of service provider to registry, which can be used by consumer.

RegistryFactory registryFactory = ExtensionLoader.getExtensionLoader(RegistryFactory.class).getAdaptiveExtension();
Registry registry = registryFactory.getRegistry(URL.valueOf("zookeeper://"));

Last modified December 22, 2020: clean up website (6e41905afab)