Watching the great gems session [1] couple of times. It was mentioned scd can be used to sync any folder in AEM. I have set up the scd correctly and able to sync /home correctly. But anything outside /home does not sync. However making explicit curl command [2] sync correctly any thing outside /home. That means listener is missing to call distribution api of scd outside the /home directory. Please let me know
[1] Troubleshooting Sling Content Distribution
[2] curl -u admin:admin http://localhost:8081/libs/sling/distribution/services/agents/reverse-pubsync -d 'action=ADD' -d 'path=/content/sample1'
Solved! Go to Solution.
You setup is probably missing a service that detects changes in the repository and triggers distribution requests (similar the example you shared [2]) upon changes.
You would need to develop a service that issues distribution requests via the APIs at
In particular, see the Distributor API
Syncing content is highly dependent on the content structure related to a specific use case, thus making a generic implementation is tricky.
To my knowledge, there is no plan to have generic sync feature implemented. You could implement sync for your own use case.
We have asked the team that presented this to look at this question.
Views
Replies
Total Likes
Also - there are detailed Sling docs on this subject here: Apache Sling :: Content Distribution (org.apache.sling.distribution)
Views
Replies
Total Likes
You setup is probably missing a service that detects changes in the repository and triggers distribution requests (similar the example you shared [2]) upon changes.
You would need to develop a service that issues distribution requests via the APIs at
In particular, see the Distributor API
Syncing content is highly dependent on the content structure related to a specific use case, thus making a generic implementation is tricky.
To my knowledge, there is no plan to have generic sync feature implemented. You could implement sync for your own use case.
thanks smacdonald2008 & @tmaret. We developed own & having another issue which i will post another thread ccing you. Please help.
Still I believe can be made genric. I have filled for enhancement request at acs commons at Content Sync Listener to trigger distribution workflow · Issue #1130 · Adobe-Consulting-Services/acs... .If profession service feel importance will contribute the code there.
Hi MC Stuff,
could you please guide me what all I will have to write custom ?
I have user working fine in my system.
I want my /content/dam/xyz folder to be in sync.
I understand I need to write a listener, and how do I use distribution API in it ?
Regards,
Akash B.
Views
Replies
Total Likes
Any sample code would be very helpful.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies