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
further than you are now.

-Wes

On Fri, Jul 17, 2009 at 3:09 PM, Nathan Schulte<nathan.schu...@ngc.com> wrote:
> Jim Kiley <jhkiley <at> 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 the EntityManager when needed.  I can do a JDNI 
> lookup
> and receive an EntityManager, but I'm unsure of where this would actually need
> to be placed (an interceptor? in the action, to be placed on the stack
> somewhere(so a reference is held?)).
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to