Register two EventListeners in single event listener class
I have a scenario where we need to listeners to be registered in the same eventListener class. The listeners we are registering for two events as :
1. Asset upload’s listener in DAM
2. Page property changed listener for a page
adminSession.getWorkspace().getObservationManager().addEventListener(this,Event.NODE_ADDED | Event.NODE_MOVED, "/content/dam",true, null, {dam:Asset}, false);
adminSession.getWorkspace().getObservationManager().addEventListener(this,Event.PROPERTY_ADDED | Event.PROPERTY_CHANGED,<some page path>, true, null,{nt:unstructured}, false);
Now the issue I am facing is that only one listener is being triggered which in my case is the latter one. So what ever listener I specify last will get registered and only that will fire on that event.
Please share any inputs which can make this scenario work and where I can register two event listeners in the same event listener class.