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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @nitinfuture, in general overriding OOTB CommandServlet is not a good approach. The main reason for that is you can affect other functionalities that use this servlet, this approach could also get you in trouble after AEM upgrade (i.e. installing SP). Below you can find some options including the one that should allow you to use your servlet.
Hi @nitinfuture, in general overriding OOTB CommandServlet is not a good approach. The main reason for that is you can affect other functionalities that use this servlet, this approach could also get you in trouble after AEM upgrade (i.e. installing SP). Below you can find some options including the one that should allow you to use your servlet.
Views
Likes
Replies