Expand my Community achievements bar.

SOLVED

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

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 8

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%20...

scott

View solution in original post

1 Reply

Avatar

Correct answer by
Level 8

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%20...

scott