Thanks Thiago and Lance! I will try this and see what happens. 

> Date: Sat, 18 May 2013 21:47:22 +0100
> Subject: Re: Adding search service in Tapestry app
> From: lance.j...@googlemail.com
> To: users@tapestry.apache.org
> 
> Unfortunately, hibernate's Search.getFullTextSession(...) casts the session
> to a concrete type which fails if you pass the session singleton provided
> by tapestry-hibernate.
> 
> Instead, you must do something like the following in your AppModule
> 
> @Scope(ScopeConstants.PERTHREAD)
> public static FullTextSession buildFullTextSession(HibernateSessionManager
> sessionManager {
>    return Search.getFullTextSession(sessionManager.getSession());
> }
> 
> 
> 
> On 18 May 2013 21:05, Nomen Nomanum <getibi...@outlook.com> wrote:
> 
> > Hi. I am about to implement Hibernate Search +Lucene service in my Tap. Is
> > there anything I should get in concern before doing it? How to
> > wrap/decorate that service? And how could I make service to be injected?
> > Thanks in reply.
> >
                                          

Reply via email to