Expand my Community achievements bar.

SOLVED

How to create custom Sling content distribution tool for sending JSON from one AEM instance to another?

Avatar

Level 1

I have two AEM instances. I need to use custom Sling Content Distribution for sending JSON file from Instance-1 to Instance-2. Is it possible to implement?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@serhiiko Is it a one time distribution or you want to set up for regular distribution automatically?

Please check the below modes you can set the SCD 

 

Saravanan_Dharmaraj_0-1700097159530.png

 

See the below blogs too for reference

https://www.bounteous.com/insights/2022/09/15/adobe-experience-manager-distribution-based-publicatio... 

https://www.albinsblog.com/2020/05/sling-content-distribution-sync-use.html

 

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

@serhiiko Is it a one time distribution or you want to set up for regular distribution automatically?

Please check the below modes you can set the SCD 

 

Saravanan_Dharmaraj_0-1700097159530.png

 

See the below blogs too for reference

https://www.bounteous.com/insights/2022/09/15/adobe-experience-manager-distribution-based-publicatio... 

https://www.albinsblog.com/2020/05/sling-content-distribution-sync-use.html

 

Avatar

Level 1

Hi, thanks for answer! 

It should be regular distribution by click or scheduling (we have discussion about it). One tool is packing JSON and I need to push it to second instance for parsing. I've never worked with SCD before. If I understood correctly I need to write custom class for this feature. Right?

Avatar

Employee Advisor

Hi @serhiiko!

Sling Content Distribution is certainly one way to get content from one AEM instance to another. @Saravanan_Dharmaraj already outlined good starting points for SCD if you are already clear that this is the optimal approach to solve your business requirements.

 

Depending on your use case, there might also be other options.

  • Is your requirement about JSON files stored as such on the source AEM instance?
  • Or are the JSON files the result of a content export from that instance?
  • Is it AEM content exposed in JSON format (e. g. through model exporter, Content Fragments or similar)?

Providing a bit more context on your business requirement would allow for better recommendations on the right approach here.

 

Hope that helps!