Mar 30th, 2006, 03:21 AM
Replacement for Weblogic run-as EJB config for data access
When switching from EJB based data access to Spring/Hibernate we are facing this problem:
Our datasources are only available to a special system user.
All our data access goes through EJB facades.
The facade EJBs are configured to "run-as" the system user.
Now we are switching to data access directly through Spring/Hibernate DAOs. Does anybody know how we can achieve a similar temporary swithching of current Weblogic user in this scenario?
By the way; Switching to Acegi is a no-op. We have to keep our Weblogic-based security.
Mar 30th, 2006, 07:22 AM
Since you are not using EJBs, you'd have to specify the run-as in the servlet's deployment descriptor. Or you could call the Weblogic security API yourself, if you wanted to only run particular parts using a particular user.