Expand my Community achievements bar.

SOLVED

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

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

5 Replies

Avatar

Level 10

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. 

Avatar

Level 10

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.

Avatar

Level 3
 

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

Avatar

Correct answer by
Level 10

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

Avatar

Level 3

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