
Originally Posted by
mdeinum
I still see no reason why you cannot use an application context. Initialize it AFTER that the client has set it's DataSource, register that programmatically in your ApplicationContext (or create an app context that contains only the datasource and register that as the parent!) and do your stuff. That way the only programmatic stuff you need to do is register the datasource...
Hmm maybe even better, let the client register their application context with your Factory and use that as a parent context...