|Retrieving username from JBoss for db call setting application_context in Oracle [message #642035]
||Mon, 29 November 2010 10:44
| Florian Reiser
Registered: July 2009
I'm implementing VPD using an Oracle application_context.
For initializing it, I want to pass the username to oracle.
For this to happen, I have implemented a SessionEventListener which does the calls to the database.
Now my only problem is retrieving the username reliably.
If I retrieve the EJBContext via JNDI (all my db calls come from EJBs), then I sometimes get NullPointerExceptions stating, that the EJBContext is not available.
Are there more reliable ways?
How do you retrieve the username which is logged in ?
With kind regards
Powered by FUDForum
. Page generated in 0.04813 seconds