1 Reply Latest reply: Dec 7, 2010 9:07 AM by 704908 RSS

    Bug in filtering-transformer-scheme?

    704908
      Guys,

      It appears that the following config is not valid:
      <sync:filtering-transformer-scheme>
        <sync:entry-operation-filter>
          <sync:filter>
            <replication-filter:location-filter />
          </sync:filter>
          <sync:operations>Insert, Update, Delete</sync:operations>
        </sync:entry-operation-filter>
      </sync:filtering-transformer-scheme>
      Note: <replication-filter:location-filter /> simply returns an object that implemements com.tangosol.util.Filter.

      FilteringPublishingTransformerScheme has a mandatory property filter:
      @Property("filter")
      @Mandatory
      public void setFilter(Filter filter)
      This means that Configurator looks for an element sync:filter, however according to the specification on the incubator site (http://coherence.oracle.com/display/INCUBATOR/sync-filtering-transformer-scheme+(3.0.0)), I think it should actually be looking for an entry-operation-filter.

      Looking at the spec, it suggests that you should be able to use <instance:class> however that also fails:
      <sync:filtering-transformer-scheme>
        <instance:class classname="com.tangosol.util.filter.AlwaysFilter" />
      </sync:filtering-transformer-scheme>
      I'm going to try and change FilteringPublishingTransformerScheme and report back...

      Regards, Paul