persistence@glassfish.java.net

Re: Storing EntityManager in a session.

From: Adam Bien <abien_at_adam-bien.com>
Date: Mon, 04 Feb 2008 14:03:37 +0100

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