persistence@glassfish.java.net

Re: Storing EntityManager in a session.

From: lvcster <lvcster_at_gmail.com>
Date: Fri, 8 Feb 2008 22:00:28 -0800 (PST)

I did that, it's perfect now. I thought it was never posible to use EM
without JSF or Container managed beans, but it is.

Thankx.


Wouter van Reeven wrote:
>
> On Mon, Feb 04, 2008 at 11:17:40PM -0800, lvcster wrote:
>> The assumption is right, it is the HTTP session without JSF. I just
>> wanted to
>> try it with just plain JSP,J2EE, and as I said I don't want to use any
>> Beans.
>
> If you mean you don't want to use any JSF (managed or backing) beans, then
> you
> might consider either using servlets or struts action classes. In either
> case
> you can do the same thing as was suggested earlier: get hold of the
> HttpSession
> object and store the EM on it.
>
>
> HTH, Wouter
>
> --
>
> People: "If she weighs the same as a Duck, she's made of wood!"
> Sir Bedevere: "And therefore...?"
>
>

-- 
View this message in context: http://www.nabble.com/Storing-EntityManager-in-a-session.-tp14877929p15368881.html
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.