Hmm. This code is working for me from the console:
ModelNode operation = new ModelNode();
operation.get(ADDRESS).add("server-group", serverGroup);
operation.get(ADDRESS).add("deployment", deployment.getName());
operation.get(OP).set("add");
But if I do this from the CLI:
[domain@localhost:9999 /]
/deployment=beanvalidation.war/server-group=main-server-group/:add
{
"outcome" => "failed",
"failure-description" => {"domain-failure-description" =>
"No
handler for add at address [
(\"deployment\" => \"beanvalidation.war\"),
(\"server-group\" => \"main-server-group\")
]"}
}
Quoting "Heiko W.Rupp" <hrupp(a)redhat.com>:
HI,
there have been recent changes to the deployment handling
so for /deployment there is now a sub element "content".
The same structure seems to exist for
/server-group=x/deployment=y too. When I :add I always get a
duplicate entry exception
Is there an example available how this is supposed to work now?
Thanks
Heiko
--
Reg. Adresse: Red Hat GmbH, Technopark II, Haus C,
Werner-von-Siemens-Ring 14, D-85630 Grasbrunn
Handelsregister: Amtsgericht München HRB 153243
Geschaeftsführer: Brendan Lane, Charlie Peters, Michael Cunningham,
Charles Cachera
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev