I'm not 100% sure, but probably from section 3.3.8 of the Nuxeo Book.

Though this is describing the 'old' Event Listener Service and so don't know where I learnt of the name for the new for the new extension target.

Thanks, will try with just 'event'.

Regards,

Sean

Florent Guillaume wrote:
This is wrong:
    <eventId>acmeDemoEvent</eventId>
It should be:
    <event>acmeDemoEvent</event>

Did you find this in some of our documentation, or is it just a mistake?

Florent


On Fri, Sep 18, 2009 at 6:28 PM, Sean Radford <[email protected]> wrote:
Hi,

I would have thought that the following:

<?xml version="1.0"?>
<component name="acme.demo.Listener">
 <extension target="org.nuxeo.ecm.core.event.EventServiceComponent"
point="listener">
  <listener name="demoEventListener" async="true" postCommit="true"
    class="acme.demo.DemoEventListener">
    <eventId>acmeDemoEvent</eventId>
  </listener>
 </extension>
</component>

Would cause the Event Framework to call the acme.demo.DemoEventListener with
only events with a name of acmeDemoEvent. However, the DemoEventListener
appears to be receiving ALL events.

Naturally the DemoEventListener is sanity checking the event and logging
when an unsupported one is received:

17:17:12,952 WARN  [DemoEventListener] Unsupported event: logout
17:17:23,963 WARN  [DemoEventListener] Unsupported event: loginSuccess
17:17:31,236 WARN  [DemoEventListener] Unsupported event:
emptyDocumentModelCreated
17:17:36,795 WARN  [DemoEventListener] Unsupported event: aboutToCreate
17:17:36,800 WARN  [DemoEventListener] Unsupported event: documentCreated
17:17:36,802 WARN  [DemoEventListener] Unsupported event:
event_storage_binaries_doc
17:17:36,807 WARN  [DemoEventListener] Unsupported event: sessionSaved
17:17:36,919 WARN  [DemoEventListener] Unsupported event: sessionSaved
17:17:51,450 WARN  [DemoEventListener] Unsupported event:
emptyDocumentModelCreated
17:17:57,741 WARN  [DemoEventListener] Unsupported event: aboutToCreate
17:17:57,743 WARN  [DemoEventListener] Unsupported event: documentCreated
17:17:57,746 WARN  [DemoEventListener] Unsupported event:
event_storage_binaries_doc
17:17:57,748 WARN  [DemoEventListener] Unsupported event: sessionSaved
17:17:57,800 WARN  [DemoEventListener] Unsupported event: sessionSaved

Am I doing something wrong?

Thanks,

Sean


(I'm using 5.2.0 by the way)

--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/
t: +44 (0)845 KEY HELP
t: +44 (0)845 539 4357
m: +44 (0)7802 24 24 86

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm






--
Dr. Sean Radford, MBBS, MSc
http://www.tacola.com/
t: +44 (0)845 KEY HELP
t: +44 (0)845 539 4357
m: +44 (0)7802 24 24 86

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to