users@glassfish.java.net

Database (User) Connection per Http Session (User), how?

From: Andrew Hughes <ahhughes_at_gmail.com>
Date: Mon, 20 Feb 2012 12:04:32 +1030

Hi All,

I have a mandatory design constraint that a database connection be the same
user as the http session user (for EJB 3.0 entities). AFAIK I can't use a
glassfish configured datasource, can anyone help explain how I can safely,
securely and reliably provide one database connection per http session to
the container/manager (within the appropriate session/user context)?

Thanks in advance!
--AH