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());
}
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)
{
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
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.
-
You could add this to your app module:
private static class LazyFullTextSession {
private HibernateSessionManager sessionManager;
public LazyFullTextSession(HibernateSessionManager sessionManager)
{
this.sessionManager = sessionManager;
}
publi
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