Hi together,

I would like to write and register my own listener. I extended 
AbstractUsageEventListener and now I'm searching for the correct spring 
file to add my listener configuration (from DSpace docu 
https://wiki.duraspace.org/display/DSPACE/DSpace+Services+Framework 
Configuring Event Liseners):
<?xml version="1.0" encoding="UTF-8"?>
<beans>

     <bean id="dspace" class="org.dspace.utils.DSpace"/>

     <bean id="dspace.eventService"
           factory-bean="dspace"
           factory-method="getEventService"/>

     <bean class="org.my.EventListener">
          <property name="eventService" >
             <ref bean="dspace.eventService"/>
         </property>
     </bean>
</beans>

I tried creating a new addon-service.xml file in 
additions/src/main/resources/spring (result was exception DSpace Kernal 
can not be null) and applicationContext.xml from xmlui (no error but the 
listener is not registered).

What is the correct place to add my listener configuration?

Thanks
Christian

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to