<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Michael</p>
There is no operation for inserting a protocol layer at a specific
position in the stack.<br>
You will have to remove the original stack definition and recreate
it with a series of commands.<br>
This can be placed into a CLI batch and executed as a script if you
need to do it often.<br>
Here is an example:<br>
<br>
contents of the CLI script (the following commands in a text file
called, say, setstack.cli):<br>
--------------------------------------------------------------------------------------<br>
connect<br>
batch<br>
/subsystem=jgroups/stack=tcp:remove()<br>
<br>
/subsystem=jgroups/stack=tcp:add()<br>
/subsystem=jgroups/stack=tcp/transport=TCP:add(socket-binding="jgroups-tcp")<br>
/subsystem=jgroups/stack=tcp/protocol=MPING:add(socket-binding="jgroups-mping")<br>
/subsystem=jgroups/stack=tcp/protocol=MERGE3:add()<br>
/subsystem=jgroups/stack=tcp/protocol=FDSOCK:add(socket-binding="jgroups-tcp-fd")<br>
/subsystem=jgroups/stack=tcp/protocol=FD:add()<br>
/subsystem=jgroups/stack=tcp/protocol=VERIFY_SUSPECT:add()<br>
/subsystem=jgroups/stack=tcp/protocol=pbcast.NAKACK2:add()<br>
/subsystem=jgroups/stack=tcp/protocol=UNICAST3:add()<br>
/subsystem=jgroups/stack=tcp/protocol=pbcast.STABLE:add()<br>
/subsystem=jgroups/stack=tcp/protocol=pbcast.GMS:add()<br>
/subsystem=jgroups/stack=tcp/protocol=MFC:add()<br>
/subsystem=jgroups/stack=tcp/protocol=FRAG2:add()<br>
run-batch<br>
--------------------------------------------------------------------------------------<br>
<br>
execute the CLI script:<br>
./jboss-cli.sh --file=setstack.cli<br>
<br>
Richard<br>
<div class="moz-cite-prefix">On 29/07/16 12:59 PM, Michael Irwin
wrote:<br>
</div>
<blockquote
cite="mid:CAOeesxzU1jwunpuczieoFrikrh03+8x+xRcojYO=ut5bSyEfDQ@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">I'm adding a JGroup stack protocol using this
command:
<div><br>
</div>
<div>/subsystem=jgroups/stack=tcp/protocol=JDBC_PING:add()<br>
</div>
<div><br>
</div>
<div>But, the new protocol is added to the end of the list of
protocols. And, since protocol order matters, how do I add
the protocol to the front of the list? And, I'd prefer to do
it without tweaking the XML directly. Any pointers?</div>
<div><br>
</div>
<div>--</div>
<div>Michael Irwin</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
wildfly-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/wildfly-dev">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></pre>
</blockquote>
<br>
</body>
</html>