KewlCat
unread,Nov 25, 2010, 5:54:39 PM11/25/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xer...@googlegroups.com
I missed the obvious, sorry. I did not answer your questions...
Since you wanted to connect to a different database based on the current user credentials (username, role, whatever...), while using my solution you just have to do a different lookup to the datasource (i.e. just change the string in the call to myContextEnv.lookup() ...) and you're good to go (or not, if the requests are different from one database to the other)
And, as you can see in my context.xml file, all my webapp's databases are stored within the webapp, inside the WEB-INF/sql directory.