HI All,
We are checking an condition for triggering the event using the method EventUtil.isLocal(event) which is deprecated in 6.2 could you let us know if any alternates are available.
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
the combination of the two proposed solutions helps when registering a event handler service:
import org.osgi.service.event.EventConstants;
import org.apache.sling.event.dea.DEAConstants;
@Property(name = EventConstants.EVENT_FILTER, value = "(!(" + DEAConstants.PROPERTY_APPLICATION + "=*))");
Views
Replies
Total Likes
Hi Girish,
Use the property filter. Some thing like
@Property(name = EventConstants.EVENT_FILTER, value = "(!(propertyName=*))")
Thanks,
Views
Replies
Total Likes
Hi
Replaced
EventUtil.isLocal(evt)
with
evt.getProperty(DEAConstants.PROPERTY_APPLICATION) == null ? true : false)
~kautuk
Views
Replies
Total Likes
Hi,
the combination of the two proposed solutions helps when registering a event handler service:
import org.osgi.service.event.EventConstants;
import org.apache.sling.event.dea.DEAConstants;
@Property(name = EventConstants.EVENT_FILTER, value = "(!(" + DEAConstants.PROPERTY_APPLICATION + "=*))");
Views
Replies
Total Likes