-
-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Hot swap #267
Comments
@dtrunk90 Sure, we can try together to see if we can find a solution. A simple implementation (POC) is to create a background task that checks the plugins directory for new, modified or removed plugins (zip or jar files). When a modification is detected then PF4J, by default, will use methods from Below links can be useful: |
Yes, I'm talking about that Keycloak. The SPI is well documented here: https://www.keycloak.org/docs/latest/server_development/index.html#_providers From Section 6.2.1:
I don't know if it's a Keycloak or WildFly feature. |
It's a WildFly feature. In PF4J the complexity is high because you have plugin with dependencies. We will see. Like a detail, Jose (@jgomer2001) succeeded with this approach. |
We have implemented something like this and used it for about 5 years already (using version 0.12.0). Until now we have not used dependencies between modules, but that has now become relevant. When a plugin that is depended on by other plugins is reloaded, PF4J automatically stops and unloads the plugins that depend on the plugin being reloaded. This is all fine, but when the plugin is loaded and started again after that, we would like to automatically start the plugin that depend on the one being updated and that were loaded and running before the update. This is where I think PF4J could provide a little bit more help. It's possible to determine which plugins an update will unload and stop before it's done by using the Has anyone else had or solved the same kind of problem? |
https://github.com/dcevm/dcevm Based on whether this can be achieved? |
As discussed in #65 and #182 it would be nice to have a hot swap feature in order to replace plugins and let pf4j automagically stop and start/restart them.
The only project I know of which already has this feature and could be helpful to take a look into is Keycloak.
The text was updated successfully, but these errors were encountered: