Injectable listeners is only available in JPA 2.1. There was a thread earlier (started by me) on this. I want to carve out some time at some point to make it possible in Tapestry-ioc. If you are using EclipseLink and don't mind an ugly provider-specific hack, you could get some ideas from http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-jpa/src/main/java/org/tynamo/model/jpa/internal/ElasticSearchIndexMaintainer.java(see EclipseLinkDescriptorEventListener class and how it's used).
Kalle On Wed, Nov 13, 2013 at 4:04 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 13 Nov 2013 08:38:05 -0200, Eugen <eugens...@gmail.com> wrote: > > Hi, >> > > Hi! > > > it is possible to user service injections inside a @EntityListeners >> annotated class? >> > > If you manage to get it instantiated through Tapestry-IoC, yes. > > -- > Thiago H. de Paula Figueiredo > Tapestry, Java and Hibernate consultant and developer > http://machina.com.br > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >