dubbo icon indicating copy to clipboard operation
dubbo copied to clipboard

Can dubbo provide api to change underlying component after the application has launched ?

Open tswstarplanet opened this issue 7 years ago • 2 comments

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.

tswstarplanet avatar Jan 12 '19 18:01 tswstarplanet

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:

  1. go to source codes and find out code snippets where dubbo inits and loads the user-extended spi components.
  2. go to dubbo admin backend project and try to add a controller function.
  3. get aware of what parameters are needed and copy and mpdify the existing code snippets you found in step 1.
  4. debug and playaround
  5. let us know your progress and I am happy to help you.

Kiddinglife avatar Jan 14 '19 05:01 Kiddinglife

@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.

tswstarplanet avatar Jan 15 '19 15:01 tswstarplanet