[wildfly-dev] -Djboss.modules.system.pkgs=class1, class2 runtime equivalent

David Lloyd david.lloyd at redhat.com
Thu Nov 15 09:52:22 EST 2018


On Thu, Nov 15, 2018 at 8:38 AM Sam Thomas <sam.thomas at broadcom.com> wrote:
> Hi guys!
>
> When an agent starts up with the JVM (through premain()) we can specify in the command to start up jboss, classes to be added to jboss system packages by setting the above property.
>
> I am looking to replicate the effect of setting that system property after jboss has started up, i.e, an agent will be loaded through agentmain() after jboss is up and running.

At present, these values are calculated when JBoss Modules starts up
and stored in a constant field.  So to change that exact mechanism
with one which can be reloaded would require that the field be made
mutable and that an operation be added which recomputes that field.
This is to say that it is possible, but the current code doesn't do
that.

-- 
- DML


More information about the wildfly-dev mailing list