dcsimg
Stateful EJB referencing another stateful EJB
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bozhidar_Bozhanov
Posted On:   Saturday, May 31, 2008 07:11 AM

Hi,

I have created a Stateful EJB called Session, to be used as a user session by all other EJBs.

However, if I inject (using @EJB) the session, a new instance is passed every time, even though the receiving bean is also stateful.

The application is a desktop one, so I cannot just use HttpSession instead.

Is there a good way of doing this? (I'm using Glassfish app server).

A workaround might be to create my own support for the session, based on the "caller principal" (to be used as session identifier - is this plausible?).

About | Sitemap | Contact