We use AEM 6.2 and we have to implement two Replication Preprocessors (com.day.cq.replication.Preprocessor). When I include second preprocessor, the system is only executing the first one. When I delete the first one, second preprocessor executes properly.
I did not find enough documentation and samples on having more than one preprocessor implementation.
Could someone advise whether it is needed to configure some additional properties in order for all preprocessors to be launched?
Thank you.
Examples:
@Component(immediate = true, label = "Preprocessor 1")
@Service
public class ReplicationPreprocessor1 implements Preprocessor {
@Override
public void preprocess(final ReplicationAction replicationAction, final ReplicationOptions replicationOptions)
throws ReplicationException {
// Do something
}
}
@Component(immediate = true, label = "Preprocessor 2")
@Service
public class ReplicationPreprocessor2 implements Preprocessor {
@Override
public void preprocess(final ReplicationAction replicationAction, final ReplicationOptions replicationOptions)
throws ReplicationException {
// Do something
}
}