1 person found this helpful
That article is for AEM 5.x. How did you build your bundle - if using AEM 6.3 for example - did you use UBER 6.3 JAR?
This is a good use case for a HELPX article for use on latest AEM version. We do not have this documented in a community article.
Thank you very much for your prompt response.
I've added below UBER 6.3 jar dependency in pom.xml
Please advise if i need to add any other dependency to use com.day.cq.replication.* classes..
I've tried by adding below dependency but it didn't worked.
Try this community article:- AEM - How to create and implement custom Replication Agent
// The TransportHandler is used to transport the replication to the target and ContentBuilder assembles the data for the replication.
We are not implementing custom Replication Agent. My requirement is as follows:
We have different environments like dev, qa and prod. We have both author and publisher for each environment. We wanted to use workflow to promote documents from lower environment to higher like dev to qa and qa to prod.
When we use normal publish option it should deploy from author to publish only. but when we use workflow, it deploys from dev author to qa author and qa author to prod author etc..
So to meet this,
On Dev author, I've created replication agents for DEV publish and QA author. I will enable DEV publish agent and disable QA author agent so that when we use publish option, it will deploy documents from dev author to dev publish.
In the workflow process, I will get the QA author agents and deploy the document to QA author only.
This is what my approach.
To meet this, I'm writing custom code and getting issues as mentioned in my previous post.
your quick response would be more helpful.
The AgentFilter class should be part of the com.day.cq.cq-replication bundle, and on my local AEM 6.3 SP1 the system recommends to use this dependency:
Can you check on your instance (using localhost:4502/system/console/depfinder) what dependency is listed for this java package? If your bundle resolves, everything should fine, and there should never be a ClassNotFoundException.