<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Yes, right. I meant to ask: </div><div>Does this sound like a reasonable feature to add? The ability to recursively invoke add operations?</div><div><br></div><div>I.e. operation=add, recursive=true, [...] </div><div><br></div><div>So that the management layer takes care of breaking it up into multiple "add" invocations?</div><div><br></div><br><div><div>On Oct 22, 2012, at 11:31 AM, Tomaž Cerar <<a href="mailto:tomaz.cerar@gmail.com">tomaz.cerar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<br><br>given example below, your problem is that you are calling one add operation where you should be calling many. for example provided it should be something like this (not tested)<br><br>{<br> "operation" => "add",<br>
"address" => [<br> ("host" => "master"),<br> ("server-config" => "prod_copy")<br> ],<br> "auto-start" => true,<br> "cpu-affinity" => undefined,<br>
"group" => "production-1",<br> "interface" => undefined,<br> "path" => undefined,<br> "priority" => undefined,<br> "socket-binding-group" => "full-sockets",<br>
"socket-binding-port-offset" => 150<br>}<br><br>{<br> "operation" => "add",<br> "address" => [<br> ("host" => "master"),<br> ("server-config" => "prod_copy")<br>
("jvm" => "default")<br> ],<br> "agent-lib" => undefined,<br> "agent-path" => undefined,<br> "debug-enabled" => false,<br> "debug-options" => undefined,<br>
"env-classpath-ignored" => undefined,<br> "environment-variables" => undefined,<br> "heap-size" => "256m",<br> "java-agent" => undefined,<br> "java-home" => undefined,<br>
"jvm-options" => undefined,<br> "max-heap-size" => "256m",<br> "max-permgen-size" => undefined,<br> "permgen-size" => undefined,<br> "stack-size" => undefined,<br>
"type" => undefined<br>}<br><br>{<br> "operation" => "add",<br> "address" => [<br> ("host" => "master"),<br> ("server-config" => "prod_copy")<br>
("system-property" => "test")<br> ],<br> "boot-time" => false,<br> "value" => "value"<br>}<br><br>basicly every resource needs its own add operation<br>
<br>--<br>tomaz<br><br><div class="gmail_quote">On Mon, Oct 22, 2012 at 11:17 AM, Heiko Braun <span dir="ltr"><<a href="mailto:hbraun@redhat.com" target="_blank">hbraun@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
<br>
I am working on a use cases that enables people to "copy" resources. I.e. creating a clone of a server configuration under a new name. I've realised that recursive add operations, covering a larger resource tree don't seem to work (see example below). Is there any "switch" that I am not aware of, or this simply not work due to the design of the operation handlers?<br>
<br>
<br>
[INFO] {<br>
[INFO] "operation" => "add",<br>
[INFO] "address" => [<br>
[INFO] ("host" => "master"),<br>
[INFO] ("server-config" => "prod_copy")<br>
[INFO] ],<br>
[INFO] "auto-start" => true,<br>
[INFO] "cpu-affinity" => undefined,<br>
[INFO] "group" => "production-1",<br>
[INFO] "interface" => undefined,<br>
[INFO] "path" => undefined,<br>
[INFO] "priority" => undefined,<br>
[INFO] "socket-binding-group" => "full-sockets",<br>
[INFO] "socket-binding-port-offset" => 150,<br>
[INFO] "jvm" => {"default" => {<br>
[INFO] "agent-lib" => undefined,<br>
[INFO] "agent-path" => undefined,<br>
[INFO] "debug-enabled" => false,<br>
[INFO] "debug-options" => undefined,<br>
[INFO] "env-classpath-ignored" => undefined,<br>
[INFO] "environment-variables" => undefined,<br>
[INFO] "heap-size" => "256m",<br>
[INFO] "java-agent" => undefined,<br>
[INFO] "java-home" => undefined,<br>
[INFO] "jvm-options" => undefined,<br>
[INFO] "max-heap-size" => "256m",<br>
[INFO] "max-permgen-size" => undefined,<br>
[INFO] "permgen-size" => undefined,<br>
[INFO] "stack-size" => undefined,<br>
[INFO] "type" => undefined<br>
[INFO] }},<br>
[INFO] "system-property" => {"test" => {<br>
[INFO] "boot-time" => false,<br>
[INFO] "value" => "value"<br>
[INFO] }}<br>
[INFO] }<br>
<br>
<br>
_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
</blockquote></div><br>
</blockquote></div><br></body></html>