[wildfly-dev] access to mgmt api/services

Jason Greene jason.greene at redhat.com
Mon Jan 27 18:07:34 EST 2014


On Jan 27, 2014, at 4:22 PM, Bill Burke <bburke at redhat.com> wrote:

> Is there an example somewhere of getting access to the mgmt api from a 
> deployed servlet app? I'd like to be able to manage subsystem 
> configuration and store it (within standalone.xml or whatever).
> 
> Also, what is the best practice for managing in-VM services that are 
> shared between deployments (specifically services shared between web 
> deployments)?

Singleton EJBs and @EJB references is the simplest. Although you could also use MSC services. Either case
means you have to deploy things together (e.g. in the same deploy operation, or part of boot) or if separate they have to be in the right order.

--
Jason T. Greene
WildFly Lead / JBoss EAP Platform Architect
JBoss, a division of Red Hat




More information about the wildfly-dev mailing list