Expand my Community achievements bar.

SOLVED

EventHandler for /var/

Avatar

Level 1

Hi to everybody,

I tried to implement an EventHandler for AEM 6.4.1 to observe a subtree within /var/ and don't get this running.

What's the right way to configure this class with @Component?

What's the right value for EVENT_TOPIC to observe a /var/sub-path?

@Component(immediate = true, property = { EventConstants.EVENT_TOPIC + "=????",

   EventConstants.EVENT_FILTER + "=(varPath=/var/my/sub/path/de_DE/*)" })

Thanks in advance

Uwe

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

value of event topic is depending on what kind of events you want to listen.

When you perform operation on nodes corresponding events triggered.

You can view AEM events by using the Events view located at: http://localhost:4502/system/console/events.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

value of event topic is depending on what kind of events you want to listen.

When you perform operation on nodes corresponding events triggered.

You can view AEM events by using the Events view located at: http://localhost:4502/system/console/events.



Arun Patidar