You could try several things: Search your favorite search engine for ³spring ibatis example².
Look at the jpetstore example in the Spring (with dependencies) distribution. Read the Spring docs, specifically the section on iBATIS. Search this mail list archive, here's on way to do that: http://www.mail-archive.com/[email protected]/ Look at the iBATIS wiki for Spring articles. There¹s one on DAO conversion that has a nice Spring setup example. Cheers, Chris On 8/9/07 2:09 PM, "Kenan Azam" <[EMAIL PROTECTED]> wrote: > Thanks Andrew. > Is there an example of this injection being done? > > On 8/9/07, Broderick, Andrew (GE Indust, ES Rail, consultant) < > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: >> You will have to use Spring to manage at least the DB-related parts of your >> application, in order to inject the DataSource into the sqlMapClient, and the >> sqlMapClient into the DAOs. >> >> You do not have to use Spring for anything else, like managing your Struts >> action classes, if you use the ServiceLocator pattern (or similar) to get the >> DAOs from Spring when they are needed. >> >> >> -----Original Message----- >> From: Kenan Azam [mailto:[EMAIL PROTECTED] >> Sent: Thu 8/9/2007 3:41 PM >> To: [email protected] >> Subject: Question regarding Spring DAO >> >> Hi, >> I am using ibatis in a Struts based web application. To use the Spring DAO's >> for ibatis which I generated from abator, is it necessary that I am using >> spring or do I just need to import the libraries. >> Thanks, Kenan >> >> > >
