Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-1226

Certain configuration elements not read correctly

    XMLWordPrintable

Details

    Description

      I am unable to create a custom interceptor for a specific NamedCache via xml configuration.
      The only solution using external configuration is to add the <customInterceptors> element to the <default> cache - but this applies the interceptor to all caches.

      <customInterceptors>
      <interceptor after="org.infinispan.interceptors.CallInterceptor" class="com.test.MyCustomInterceptor" />
      </customInterceptors>

      Programmatic configuration works in Embedded mode but this can't be used with hotrod as calling getAdvancedCache() results in an UnsupportedOperationException.

      Attachments

        1. CustomInterceptor.java
          0.2 kB
          Mark Addy
        2. custom-interceptor-default-test.xml
          2 kB
          Mark Addy
        3. custom-interceptor-named-test.xml
          2 kB
          Mark Addy
        4. CustomInterceptorTest.java
          3 kB
          Mark Addy

        Activity

          People

            vblagoje Vladimir Blagojevic (Inactive)
            markaddy_jira Mark Addy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: