persistence@glassfish.java.net

Re: Storing EntityManager in a session.

From: lvcster <lvcster_at_gmail.com>
Date: Mon, 4 Feb 2008 13:03:47 -0800 (PST)

The thing is i want to play away from Beans and JSF, Isn't there a way aroubd
this?



Adam Bien wrote:
>
> Hi Lvcster,
>
> just wrap it with a Stateful Session Bean and then store it. Please see:
> http://www.adam-bien.com/roller/abien/entry/are_plain_old_webcontainers_still
> and follow the links to Sun Blueprint from this post as well,
>
> regards,
>
> adam
> lvcster schrieb:
>> Hi guys,
>> Could anyone help me. I am trying to create an EntityManager and Store it
>> in
>> the session so that every request will have it own EntityManager session
>> id.
>> I know how to create the 'EM', but have no clue how to store it in the
>> session.
>>
>> Your help wil highly be appreciated.
>>
>> lvcster.
>>
>
>
> --
> Consultant, Author, Java Champion
>
> Homepage: www.adam-bien.com
> Weblog: blog.adam-bien.com
> eMail: abien_at_adam-bien.com
> Mobile: 0049(0)170 280 3144
>
> Books: Enterprise Architekturen (ISBN: 393504299X),
> Java EE 5 Architekturen (ISBN: 3939084247),
> J2EE Patterns, J2EE Hotspots, Enterprise Frameworks and Struts
>
>
>
>
>

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