|
|
Datasource setup in a Struts + Spring JDBC app?
Hi all,
Spring newbie, Struts vet here trying to setup my existing Struts app to use Spring JDBC and my question is how do I setup the datasource for Spring JDBC to use? Currently, in Strus, it is part of a DAOBase abstract class that all DAO's extend and init the datasource via a method (initconnection()). I've been able to setup the Spring side of things with DAO interface, DAO impl classes and the whole nine but I'm not getting how Spring knows which datasource to use or how to let it know which datasource to use.
Any help would be greatly appreciated.
-D
Just to add to the above questions:
Is it possible to get the datasource as I'm getting it now (jndi lookup in code) and then pass it to Spring? If so, how do I do that?
If config files are the way to go, which files do I need to setup and how?
TIA,
-D |
|