In 2.0, this is done for everything but JSF. In 1.9.x, I was never able to get this to work properly with StrutsTestCase. You could probably use the trick where you keep the Hibernate Session open in a ThreadLocal.
http://issues.appfuse.org/browse/APF-171 Matt On 2/14/07, Sanders, Corey <[EMAIL PROTECTED]> wrote:
I am running APPFUSE 1.94 w/ Struts and Hibernate. When I run test-web for testcases that use objects that have lazy-loaded relationships, I am getting lazy-loading exceptions. I believe this is a known issue. I found the JIRA once before, but can't seem to located it now. Anyway, if I recall correctly this was deferred to 2.0 since it wasn't a straight forward fix in the grand scheme of all of appfuse's supported persistence layers. I don't really need support for all persistence layers, so I was hoping to put the hibernate fix into my local instance. Can somebody give me some direction on what I need to change to make the lazy-loading work? I figure I need something equivalent to the OpenSessionInViewFilter, but I'm not really sure how to wire that up. Thanks, -- Corey
-- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
