hi, i'm wondering if its possible to do this at runtime. I have two datasources (dev and dit). I am using an ibatis SqlMapClientFactoryBean. Typically the dev datasource is wired into this at startup. What I want to know is if it is possible to programmatically change the datasource at runtime.
I've tried using the code below. I retrieve a DriverManagerDataSource from the database and update the beans in the applicationContext that use a datasource. It doesn't however change the datasource being used.