Can dubbo provide api to change underlying component after the application has launched ?
Dubbo provider its own spi mechanism to let user configure and extend it. But it works during the application is launching. Can the framework provider api to change them after launching. For example, we can change registry of some services by api when the environment changes.
Hi @tswstarplanet, Are you expecting something like dynamic loading of the extended component at runtime? regards. If true, this is the think of steps I will try:
- go to source codes and find out code snippets where dubbo inits and loads the user-extended spi components.
- go to dubbo admin backend project and try to add a controller function.
- get aware of what parameters are needed and copy and mpdify the existing code snippets you found in step 1.
- debug and playaround
- let us know your progress and I am happy to help you.
@Kiddinglife Thanks for the response, I think it is like that you said. I think if the underlying component like registry can be replace after the starting up of an application, it can be more flexible.