Execute custom servlet/service on page custom page propert addition or modification | Community
Skip to main content
Level 4
October 16, 2015
Solved

Execute custom servlet/service on page custom page propert addition or modification

  • October 16, 2015
  • 1 reply
  • 850 views

Hi,

what would be the best way to execute custom servlet /service once a page property is added or modified? 

For example , if author opens up page properties from side kick - advanced- update or add new design path, I want to execute my custom service. 

One way which I read through some of the posts is to use jcr observation listeners,but some recommend not to as they might create problems in multi cluster environment.

would using a sling post processors right way to archive it? Any examples of using it? Or any other easy approaches? 

 

Th

 

 

thanks in ad

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Scott_Brodersen

Similar to jcr observation listeners, you can use a workflow launcher that executes a workflow when a node changes. The workflow would call the service. But I guess this would have the same drawbacks in a clustered environment.

http://dev.day.com/docs/en/cq/current/workflows/wf-using.html#Starting%20Workflows%20When%20Nodes%20Change

scott

1 reply

Scott_Brodersen
Scott_BrodersenAccepted solution
Level 8
October 16, 2015

Similar to jcr observation listeners, you can use a workflow launcher that executes a workflow when a node changes. The workflow would call the service. But I guess this would have the same drawbacks in a clustered environment.

http://dev.day.com/docs/en/cq/current/workflows/wf-using.html#Starting%20Workflows%20When%20Nodes%20Change

scott