Hi, I was looking to use IBatis in a web app. I would like to run my queries using the credentials of the user logged in. A google on this came up with UserCredentialsDataSourceAdapter in spring. Can you refer me to some sample code on how to configure IBatis with spring. What would you recommed to call the setCredentialsForCurrentThread method.
Do you have any other suggestions to solve this issue.
Please click on the My Profile link above and change your display name to remove the "@yahoo.com" and remove the "_" to be a blank space between your first and last names. Thanks
Brandon, I have this part configured rght. My problem is where do I set the user name and password on the datasouce from the user context. Do I need to set this in a servelet filter. I would personaly like to do this in my service tier. Can AOP help me out there.
Thanks
Raghu
Brandon Goodin
author
Greenhorn
Joined: Nov 08, 2006
Posts: 14
posted
0
This thread appears to provide information about what you are looking for.