7 Replies Latest reply on Jan 14, 2019 11:07 AM by Galder Zamarreño

    infinispan modules for wildfly configuration

    jorcx liu Newbie

      hi,

      I'm following this guide Infinispan 9.3 User Guide,and i want enable groups and batch,i configured in standalone-ha.xml.

       

      <subsystem xmlns="urn:infinispan:server:core:9.3">
                  <cache-container name="jdg-container" default-cache="dist" module="org.infinispan.extension:ispn-9.3">
                      <transport channel="jdg-cluster"/>
                      <global-state/>
                      <distributed-cache-configuration name="distributed-template"
                          owners="1"
                          segments="10">
                          <transaction mode="BATCH" />
                          <groups enabled="true" />
                      </distributed-cache-configuration>
                      <distributed-cache name="dist" configuration="distributed-template" />
                  </cache-container>
              </subsystem>
      

       

      but when i start wildfly, i got following error

      21:13:30,741 ERROR [org.jboss.as.controller] (Controller Boot Thread)

      OPVDX001: Validation error in standalone-ha.xml --------------------------------

      |

      |  156:   owners="1"

      |  157:   segments="10">

      |  158:   <transaction mode="BATH" />

      |        ^^^^ Invalid value BATH for mode; legal values are [NON_XA, FULL_XA, NONE,

      |               NON_DURABLE_XA]

      |

      |  159:   <groups enabled="true" />

      |  160: </distributed-cache-configuration>

      |  161: <distributed-cache name="dist" configuration="distributed-template" />

      |

      | The primary underlying error message was:

      | > ParseError at [row,col]:[158,18]

      | > Message: "WFLYCTL0248: Invalid value BATH for mode; legal values are

      | >   [NON_XA, FULL_XA, NONE, NON_DURABLE_XA]"

      |

      |-------------------------------------------------------------------------------

       

      and

       

      ERROR [org.jboss.as.controller] (Controller Boot Thread)

      OPVDX001: Validation error in standalone-ha.xml --------------------------------

      |

      |  157:       segments="10">

      |  158:       <transaction mode="NONE" />

      |  159:       <groups enabled="true" />

      |            ^^^^ 'groups' isn't an allowed element here

      |

      |  160:     </distributed-cache-configuration>

      |  161:     <distributed-cache name="dist" configuration="distributed-template" />

      |  162: </cache-container>

      |

      | The primary underlying error message was:

      | > ParseError at [row,col]:[159,18]

      | > Message: WFLYCTL0198: Unexpected element

      | >   '{urn:infinispan:server:core:9.3}groups' encountered

      |

      |-------------------------------------------------------------------------------

       

      how can i configure with enable group API and BATCH transaction ?