On 11/15/13 1:29 PM, David M. Lloyd wrote:
On 11/15/2013 01:22 PM, ssilvert(a)redhat.com wrote:
> I'm inside a DeploymentProcessor and I want to execute a management
> operation on another subsystem. How can I get a
> ModelControllerClient in order to do that?
You shouldn't do that. A deployment operation should never change the
persistent configuration. Non-persistent configuration/resources should
be modifiable in other subsystem-dependent ways.
DUPs also run inside a service's start method (the deployment phase
service.) You can't invoke a management op that modifies anything from
inside a service start for a service that in turn was started as part of
a management op. At least not if the DUP is going to block waiting for
that op to complete. The 2nd op won't execute because the first op
holds an exclusive lock; the first op won't release that lock because it
is waiting for the service to complete start.
--
Brian Stansberry
Principal Software Engineer
JBoss by Red Hat