It is a frontend service so you need to place it in your favourite frontend project (jspui or xmlui) /WEB-INF/spring/applicationContext-custom.xml
is your org.my.EventListner a subclass of org.dspace.usage.AbstractUsageEventListener ? otherwise you need to implement the event listner registration see method AbstractUsageEventListener #setEventService Andrea Il 24/03/2014 12.23, Christian Scheible ha scritto: > 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 -- Andrea Bollini Dipartimento Servizi e Soluzioni per l'Amministrazione Universitaria Divisione Ricerca Via dei Tizii, 6 00185 Roma, Italy tel. +39 06 44 486 087 - mob. +39 348 82 77 525 http://www.cineca.it ------------------------------------------------------------------------------ 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