Filter « Struts « JPA Q&A





1. Using ThreadLocal Filter pattern with Struts AND JUnit    forum.hibernate.org

I'm puzzling over how to make use of the Filter and ThreadLocal pattern when I run my data layer code both within Struts and also in JUnit tests. Obviously, I can't use the Filter in JUnit tests, since it is tied to the servlet container. So, I guess I need to make the ThreadLocal session separate from the Filter, so it ...

2. Open Session In View filter and Struts Tiles    forum.hibernate.org

Hi there ... :-) I have a hopefully quick question regarding the Open Session In View Filter. I have an application built using Struts and Tiles, which gets a JSP page of data through Hibernate. Because I need to get a lazy-loaded list on the page, I use the Open Session In View filter to maintain the session when the view ...