This might work: http://static.appfuse.org/appfuse-data/appfuse-hibernate/apidocs/org/appfuse/dao/spring/HibernateExtensionPostProcessor.html
Matt On Fri, Oct 3, 2008 at 3:52 PM, mschipperheyn <[EMAIL PROTECTED]> wrote: > > Hi, > > I've set up Hibernate search in my app fuse project. I'm almost there > however, in order to have Hibernate automatically update the index when a > c(r)ud operation takes place, I need to add listeners to the session > factory. Since this part of the Appfuse jar, I can only access that code by > recompiling Appfuse and I would like to avoid that when possible. > > This is the code I need to add: > Applicationcontext.xml > <bean id="textIndexEventListener" > class="org.hibernate.search.event.FullTextIndexEventListener" /> > <bean id="sessionFactory" > class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> > [...] > <property name="eventListeners"> > <map> > <entry key="post-update" value-ref="textIndexEventListener"/> > <entry key="post-insert" value-ref="textIndexEventListener"/> > <entry key="post-delete" value-ref="textIndexEventListener"/> > </map> > </property> > </bean> > > Any ideas how I might achieve this in another way? > > Cheers, > > Marc > > -- > View this message in context: > http://www.nabble.com/Hibernate-Search%2C-how-to-set-add-listeners-to-session-factory-tp19806181s2369p19806181.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
