How to map content-builder/transport-handler pair with an agnt instance in CQ5 | Community
Skip to main content
Level 2
October 16, 2015
Solved

How to map content-builder/transport-handler pair with an agnt instance in CQ5

  • October 16, 2015
  • 5 replies
  • 1787 views

Hi all,

Please help me to create Content-builder and transport handler so that it can be mapped to a agent instance.

Any sort of help highly appreciated.

Thanks in advance

LV

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

I do not have example. The way would be Implement agent & agent config. Inside agent[1] implementation you will use custom build content-builder & transport-handler.
[1]   https://dev.day.com/docs/en/cq/current/javadoc/index.html?com/day/cq/replication/Agent.html

5 replies

smacdonald2008
Level 10
October 16, 2015

For this use case -- looks like you may have to use this Java interface:

http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/replication/TransportHandler.html

I will see if i can find some sample code for you to use as a starting point. 

Sham_HC
Level 10
October 16, 2015

Take a look at example for content-builder at  https://github.com/cqsupport/webinar-dispatchercache

Can you provide more details what type of custom agent you are trying to build?

Once you have content-builder/transport-handler bundles ready  Create an agent page component and template. This would be used to configure the agent. As a starting point you can simply copy the page component and template for the default replication agent.

* see /libs/cq/replication/components/agent and /libs/cq/replication/templates/agent.

Live_MoreAuthor
Level 2
October 16, 2015
 

Thanks Sham and Macdonald.

I succeeded in creating ContentBuilder and mapping that content builder to my replication agent.Control is also coming to content builder on activation.But I am not sure of how to associate TansportHandler to the ContentBuilder. I am not clear about the relevance of TransportHandler in this context.It will be great if someone can explain this too.

My ultimate requirement is to get a proprietary format content with page URL and associated DAM assets with the activated page.Which in turn will be passed while consuming a CDN cache clear REST service we created.

Thanks in advance

LM

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

I do not have example. The way would be Implement agent & agent config. Inside agent[1] implementation you will use custom build content-builder & transport-handler.
[1]   https://dev.day.com/docs/en/cq/current/javadoc/index.html?com/day/cq/replication/Agent.html

Live_MoreAuthor
Level 2
October 16, 2015

How transport URI need to be?Can we use a servlet for this purpose? How we can retrieve all data from the transport end point?

 

Thanks

LM