Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 73881 invoked from network); 24 Nov 2006 02:42:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Nov 2006 02:42:27 -0000 Received: (qmail 93817 invoked by uid 500); 24 Nov 2006 02:42:35 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 93806 invoked by uid 500); 24 Nov 2006 02:42:35 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 93795 invoked by uid 99); 24 Nov 2006 02:42:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 18:42:35 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of julienlafontaine2006@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Nov 2006 18:42:23 -0800 Received: by py-out-1112.google.com with SMTP id n39so416565pyh for ; Thu, 23 Nov 2006 18:42:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=WiI2rmLGhV152VgUyg+UIVGGm12zUAmUkos/PcJwkQw9bq60yzT8fj83/1B8sKNvrxaUhaaqG/2sEBO8vrN3USI7vzyZedweBTTsD1e/DgiLP1fgHkWkkLKzFKk3xXuKoGanY5zWQa2ADQEmWvtU0wOAF3mu2uvlPonv3YO8vs4= Received: by 10.65.160.7 with SMTP id m7mr15647119qbo.1164336122576; Thu, 23 Nov 2006 18:42:02 -0800 (PST) Received: by 10.64.250.5 with HTTP; Thu, 23 Nov 2006 18:42:02 -0800 (PST) Message-ID: <5a93e5490611231842p1838f44clf1c5a1877eb15978@mail.gmail.com> Date: Fri, 24 Nov 2006 13:42:02 +1100 From: "Julien Lafontaine" To: user-java@ibatis.apache.org Subject: Re: Need a custom way for sqlMapConfig.xml to get JDBC properties In-Reply-To: <65c8da90611230534g5d72a755h24783e176a9452f5@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_98157_21502750.1164336122525" References: <65c8da90611221209l748b1eabied6f7a1001080178@mail.gmail.com> <5a93e5490611221446x8d050b6s2a604ef8c900cc4c@mail.gmail.com> <65c8da90611230534g5d72a755h24783e176a9452f5@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_98157_21502750.1164336122525 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I used to use the DaoManager as well and it worked fine. You have to use the method buildDaoManager that takes a Properties as parameter in the DaoManagerBuilder class. You can create one daoManager per database and then get you dao through those managers. The dao manager is going to forward those parameters to the sqlMap instance that it creates. I am talking about iBatis Dao here. I am not tu sure about Spring. Hope this helps Julien On 11/24/06, Hycel Taylor wrote: > > Hey! This sounds like a pretty good idea. Another question however. > We're using the DAO manager. Will this cause a problem? Will the DAO > manager allow access to the sqlMap so that properties can be set > before a connection to the database is made? > > Thank you for the suggestion. > ------=_Part_98157_21502750.1164336122525 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
I used to use the DaoManager as well and it worked fine. You have to use the method buildDaoManager  that takes a Properties as parameter in the DaoManagerBuilder class. You can create one daoManager per database and then get you dao through those managers.
 
The dao manager is going to forward those parameters to the sqlMap instance that it creates.
 
I am talking about iBatis Dao here. I am not tu sure about Spring.
 
Hope this helps
 
Julien
 

 
On 11/24/06, Hycel Taylor <hycel1@gmail.com> wrote:
Hey!  This sounds like a pretty good idea.  Another question however.
We're using the DAO manager.  Will this cause a problem?  Will the DAO
manager allow access to the sqlMap so that properties can be set
before a connection to the database is made?

Thank you for the suggestion.

------=_Part_98157_21502750.1164336122525--