This content has been marked as final.
Show 1 reply
-
1. Re: Configuring a custom protocol
pferraro Feb 16, 2016 10:14 AM (in response to chris.ryan)By default, the value defined by the "type" attribute is resolved against the "org.jgroups" module. To use a custom protocol (i.e. a protocol *not* contained in the default org.jgroups module, you have 2 options:
- Add your jar containing the AWS_PING protocol to the existing "org.jgroups" module. To do this you'll need to edit the existing module.xml descriptor for this module (i.e. $WILDFLY_HOME/modules/system/layers/base/org/jgroups/main/module.xml). Your jgroups subsystem configuration would look like:
<protocol type="com.meltmedia.jgroups.aws.AWS_PING"/>
- Create a new module containing the AWS_PING class and its dependencies (complete with a module.xml descriptor). This module will need a dependency on the "org.jgroups" module. Assuming this module is named "com.meltmedia.jgroups", your jgroups subsystem configuration would look like:
<protocol type="com.meltmedia.jgroups.aws.AWS_PING" module="com.meltmedia.jgroups"/>
- Add your jar containing the AWS_PING protocol to the existing "org.jgroups" module. To do this you'll need to edit the existing module.xml descriptor for this module (i.e. $WILDFLY_HOME/modules/system/layers/base/org/jgroups/main/module.xml). Your jgroups subsystem configuration would look like: