Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Comparing Groovy Console, running Groovy script from command prompt, Sling Servlet, Apache Sling Pipes

Avatar

Level 8

Hey all,

 

If there is any scenario like: To modify the jcr property of a component or a template in whole project(Usually arises during AEM upgrade or to fix some bug in all the existing pages), which is better?

1: Writing Sling Servlet

2: Use of Groovy Console

3: Use of Standalone Groovy script from command prompt(Since system has latest groovy installed

4: Apache Sling Pipes.

 

@krishna_sai 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@Mahesh_Gunaje  - 

 

  • If the changes are relatively simple and limited in scope, using the Groovy Console or a standalone Groovy script can be effective.

 

  • For more complex or extensive modifications, writing a Sling Servlet or utilizing Apache Sling Pipes would provide better control and flexibility.

 

I've lately used sling pipes for similar purposes, and you can learn more about them by reading wonderful articles : 

 

https://blog.developer.adobe.com/apache-sling-pipes-real-world-examples-1c5691b9084e 

 

https://www.linkedin.com/pulse/aem-make-your-lazy-developer-life-easier-sling-pipes-peltier/ 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@Mahesh_Gunaje  - 

 

  • If the changes are relatively simple and limited in scope, using the Groovy Console or a standalone Groovy script can be effective.

 

  • For more complex or extensive modifications, writing a Sling Servlet or utilizing Apache Sling Pipes would provide better control and flexibility.

 

I've lately used sling pipes for similar purposes, and you can learn more about them by reading wonderful articles : 

 

https://blog.developer.adobe.com/apache-sling-pipes-real-world-examples-1c5691b9084e 

 

https://www.linkedin.com/pulse/aem-make-your-lazy-developer-life-easier-sling-pipes-peltier/