Overriding OOTB CommandServlet to add custom logic for replication
Hi,
I am trying to override default behavior of OOTB CommandServlet comes with cq-replication bundle which uses scr annotation and handles all replication actions. I am trying to override this servlet to have a custom logic to replicate to a specific publish server based on agentId but I am unable to do so as POST call to /bin/replicate always goes to OOTB servlet only though I have a same configuration in the Custom Servlet to handle the replication actions.
Thanks.