On Jan 27, 2014, at 4:22 PM, Bill Burke <bburke(a)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