Nathan Schulte ngc.com> writes:
> I'll let you know what I come up with.
Well, I was able to get this to work. The interceptor is placed on the end of
the stack, although it's location oughtn't matter. Also, it is placed on the
stack for _all_ actions. I'm not sure if this is a problem, it may
Wes Wannemacher wantii.com> writes:
> This is not exactly what you want, and it's based on Hibernate and a
> hibernate session, but if you think of hibernate sessions as jpa EMs,
> then you can just make the appropriate changes to this and at least be
> further than you are now.
Thanks Wes, I don
http://struts.apache.org/2.x/docs/non-ioc-version-of-opensessioninviewinterceptor.html
This is not exactly what you want, and it's based on Hibernate and a
hibernate session, but if you think of hibernate sessions as jpa EMs,
then you can just make the appropriate changes to this and at least be
f
Jim Kiley summa-tech.com> writes:
> I assume that the OpenEntityManagerInViewFilter is not the solution for you?
I'm not using Spring. As such, I'm not familiar with this filter, but from the
description, yes, that is what is needed. However, the app server manages the
transactions, and injects
I think I missed the early part of the discussion -- I assume that the
OpenEntityManagerInViewFilter is not the solution for you?
jk
On Fri, Jul 17, 2009 at 2:53 PM, Nathan Schulte wrote:
> So is this the only resolution out there? To lazily initialize the
> contents I
> know I'll need before th
So is this the only resolution out there? To lazily initialize the contents I
know I'll need before the container decides to trash the persistence context?
There is no way to extend the context such that the lazy initialization will
work when rendering the view?
-
David Canos gmail.com> writes:
> I use a Hibernate.initilize() call in the DAO layer for every object I need
> to see in the presentation layer (common jsp files).it avoids Lazy
> Initializations without passing Hibernate Proxy around layers.
This was one of my last resort ideas. It completely f
I use a Hibernate.initilize() call in the DAO layer for every object I need
to see in the presentation layer (common jsp files).it avoids Lazy
Initializations without passing Hibernate Proxy around layers.
It works fine for me
2009/7/15 Nathan Schulte
> I'm currently using Struts2 in a project
8 matches
Mail list logo