Hello Everyone,
While sending an event using EventAdmin I am getting the following Error:
The constructor Event(String, Map<String,?>) is ambiguous
The code I have written is:
- String eventData = request.getParameter("eData");
- Hashtable props = new Hashtable();
- props.put("eventData",eventData);
- Event evt = new Event("/com/adobe/sample/test", props);
- evtAdmin.sendEvent(evt);
Adobe CQ Version: 5.6
How can I resolve this issue of creating an Event Object to send an event.
------------
I have another question regarding Jobs. According to sling API here the EventAdmin way of processing a job is deprecated. However I am not able to use the JobManager API suggested there. So my question is how do I know what is the sling version I am using and can I update my felix/sling bundles to run on the newer version with the other CQ5/JCR API?
Appreciate any inputs I can get.
Thanks