Re: Hibernate Search Fix

2013-10-11 Thread Lance Java
This would also work (and would only happen at most once per request: @Scope(ScopeConstants.PERTHREAD) public static FullTextSession buildFullTextSession(HibernateSessionManager sessionManager) { return Search.getFullTextSession(sessionManager.getSession()); }

Re: Hibernate Search Fix

2013-10-11 Thread Lance Java
Seems like it's caused by your jvm's security and accessing a private class. This should work (less verbose too): public static FullTextSession buildFullTextSession( final HibernateSessionManager sessionManager, PropertyShadowBuilder propertyShadowBuilder) {

Re: Hibernate Search Fix

2013-10-10 Thread George Christman
Hi, Lance Java offered the following snippet of code back in http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-td5669885.html -- You could add this to your app module: private static class LazyFullTextSession { private Hibern

Re: Hibernate Search Fix

2012-04-27 Thread netdawg
Interesting...thanks, Lance. Probably improves performance in search results page loading. -- View this message in context: http://tapestry.1045711.n5.nabble.com/grid-dont-link-hibernate-classic-session-tp5669885p5671534.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Hibernate Search Fix

2012-04-27 Thread Lance Java
You could add this to your app module: private static class LazyFullTextSession { private HibernateSessionManager sessionManager; public LazyFullTextSession(HibernateSessionManager sessionManager) { this.sessionManager = sessionManager; } publi

Hibernate Search Fix

2012-04-27 Thread netdawg
Yep. That was it...Tapestry Hibernate Session needs work to play nice within FullTextSession. Workaround is in thread below: http://tapestry.1045711.n5.nabble.com/Hibernate-Search-td4446040.html Also, JIRA already open... https://issues.apache.org/jira/browse/TAP5-1178 I would add 1. Hib