Regular |
 |
Joined: Tue Dec 09, 2003 2:39 pm Posts: 106 Location: Toronto, Canada
|
We're using JBoss as our EJB container. I'm assuming you're using Spring but not using EJBs, right?
In any case, what we do is authenticate our user's via JAAS and put the session factory name in a custom principal and stuff it into the session context. Whenever a user makes a subsequent invocation to the middle-tier the principal will be available to the user's session context. When we prepare a session, we pull out the session factory name from the principal in the session context, and use it to retrieve the correct session factory for each transaction.
We use the transaction-per-request model.
|
|