Then we created agent under "Agents on author". UI shows up, we can set configuration etc and agent makes calls to Akmai, all good.
However, same configuration when created on Publish instance, under "Agents on publish", does not work. UI shows up, we can set configuration etc. However, there is debug message about "com.day.cq.replication.agent.akamai.queue Queue name com/day/cq/replication/job/akamai not found. And on replicating content from author to publish, no calls are made into Transport Handler.
I checked the Felix Jobs console and typically the queue "com/day/cq/replication/job/akamai" would be created on author instance (when akamai agent is configure) as soon as first replication action is taken. However, no such queue topic is created on Publish no matter how we configure the agent on Publish.
Wondering if anyone know details around what code piece and when would it create queue topics for agents and is there is something else preventing the queue topic being created on publish ? OOTB flush agent configured on Publish has corresponding queue topic created.
Are these answers useful? Help other community members by marking useful answers as accepted.
Figured it out. The solution was quite obvious (and silly). Agents (specially the ones used for flushing activity) on publish need "On Receive" checked on the Trigger tab of the agent configuration. And it also needs "Ignore Default" checked. Looking back, it makes complete sense.