[wildfly-dev] Specifying order of new JGroups Protocol
Brian Stansberry
brian.stansberry at redhat.com
Fri Jul 29 17:40:04 EDT 2016
There was an “add-index” param that was added in 10[1] and perhaps only became functional in the just released 10.1.0.CR1 due to [2].
[1] https://issues.jboss.org/browse/WFLY-4723 <https://issues.jboss.org/browse/WFLY-4723>
[2] https://issues.jboss.org/browse/WFLY-6782 <https://issues.jboss.org/browse/WFLY-6782>
> On Jul 29, 2016, at 4:30 PM, Richard Achmatowicz <rachmato at redhat.com> wrote:
>
> Hi Michael
>
> There is no operation for inserting a protocol layer at a specific position in the stack.
> You will have to remove the original stack definition and recreate it with a series of commands.
> This can be placed into a CLI batch and executed as a script if you need to do it often.
> Here is an example:
>
> contents of the CLI script (the following commands in a text file called, say, setstack.cli):
> --------------------------------------------------------------------------------------
> connect
> batch
> /subsystem=jgroups/stack=tcp:remove()
>
> /subsystem=jgroups/stack=tcp:add()
> /subsystem=jgroups/stack=tcp/transport=TCP:add(socket-binding="jgroups-tcp")
> /subsystem=jgroups/stack=tcp/protocol=MPING:add(socket-binding="jgroups-mping")
> /subsystem=jgroups/stack=tcp/protocol=MERGE3:add()
> /subsystem=jgroups/stack=tcp/protocol=FDSOCK:add(socket-binding="jgroups-tcp-fd")
> /subsystem=jgroups/stack=tcp/protocol=FD:add()
> /subsystem=jgroups/stack=tcp/protocol=VERIFY_SUSPECT:add()
> /subsystem=jgroups/stack=tcp/protocol=pbcast.NAKACK2:add()
> /subsystem=jgroups/stack=tcp/protocol=UNICAST3:add()
> /subsystem=jgroups/stack=tcp/protocol=pbcast.STABLE:add()
> /subsystem=jgroups/stack=tcp/protocol=pbcast.GMS:add()
> /subsystem=jgroups/stack=tcp/protocol=MFC:add()
> /subsystem=jgroups/stack=tcp/protocol=FRAG2:add()
> run-batch
> --------------------------------------------------------------------------------------
>
> execute the CLI script:
> ./jboss-cli.sh --file=setstack.cli
>
> Richard
> On 29/07/16 12:59 PM, Michael Irwin wrote:
>> I'm adding a JGroup stack protocol using this command:
>>
>> /subsystem=jgroups/stack=tcp/protocol=JDBC_PING:add()
>>
>> 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?
>>
>> --
>> Michael Irwin
>>
>>
>> _______________________________________________
>> wildfly-dev mailing list
>> wildfly-dev at lists.jboss.org <mailto:wildfly-dev at lists.jboss.org>
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev <https://lists.jboss.org/mailman/listinfo/wildfly-dev>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
--
Brian Stansberry
Manager, Senior Principal Software Engineer
JBoss by Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20160729/18bc79f2/attachment-0001.html
More information about the wildfly-dev
mailing list