2 Replies Latest reply on Apr 2, 2014 9:53 AM by ajcmartins

    How to mark a stringKeyedJdbcStore as singletonStore in Infinispan 6?

    ajcmartins Newbie

      Hello, i'am trying to mark a stringKeyedJdbcStore as being shared using singletonStore as listed here but i keep getting the following exception on deploy:

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[119,17]

      Message: Unexpected element '{urn:infinispan:config:jdbc:6.0}singletonStore' encountered

       

      My configuration is:

          <namedCache name="cache1">
              <eviction maxEntries="5000" strategy="LIRS" />
              <persistence >
                  <stringKeyedJdbcStore xmlns="urn:infinispan:config:jdbc:6.0"
                                        fetchPersistentState="false"
                                        ignoreModifications="false"
                                        purgeOnStartup="false" >
                      <stringKeyedTable dropOnExit="false" createOnStart="true" prefix="ISPN">
                          <idColumn name="ID" type="VARCHAR(255)" />
                          <dataColumn name="DATA" type="BYTEA" />
                          <timestampColumn name="TIMESTAMP" type="BIGINT" />
                      </stringKeyedTable>
                      <dataSource jndiUrl="java:jboss/datasources/cacheDS" />
                      <async enabled="true" flushLockTimeout="5000" modificationQueueSize="10" shutdownTimeout="25000" threadPoolSize="2"/>
                      <singletonStore enabled="true" />
                  </stringKeyedJdbcStore>
              </persistence>
          </namedCache>
      
      

       

      Anyone able to explain why the exception occurs or how to correctly mark the store as being shared?

       

      Cheers,