Adding search service in Tapestry app

2013-05-18 Thread Nomen Nomanum
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.

Re: Adding search service in Tapestry app

2013-05-18 Thread Thiago H de Paula Figueiredo
On Sat, 18 May 2013 17:05:03 -0300, Nomen Nomanum getibi...@outlook.com wrote: Hi. I am about to implement Hibernate Search +Lucene service in my Tap. Hi! First of all, read this: http://tapestry.apache.org/defining-tapestry-ioc-services.html. Is there anything I should get in concern

Re: Adding search service in Tapestry app

2013-05-18 Thread Lance Java
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

RE: Adding search service in Tapestry app

2013-05-18 Thread Nomen Nomanum
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