Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 58582 invoked from network); 6 Jan 2007 23:36:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jan 2007 23:36:38 -0000 Received: (qmail 24446 invoked by uid 500); 6 Jan 2007 23:36:43 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 24427 invoked by uid 500); 6 Jan 2007 23:36:43 -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 24406 invoked by uid 99); 6 Jan 2007 23:36:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2007 15:36:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 06 Jan 2007 15:36:33 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1H3L5A-0004Fo-SC for user-java@ibatis.apache.org; Sat, 06 Jan 2007 15:36:12 -0800 Message-ID: <8199910.post@talk.nabble.com> Date: Sat, 6 Jan 2007 15:36:12 -0800 (PST) From: ajoo To: user-java@ibatis.apache.org Subject: Re: NPE when using user connection and sub-select statement In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: ajoo.email@gmail.com References: <8195657.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Larry Meadors-2 wrote: > > I was in a similar position, but was able to make that "connection > manager" look like a javax.sql.DataSource and use it that way with > iBATIS. > > You should investigate doing that with yours - it's actually pretty > simple, there are only 6 methods in the interface (well, a couple more > with JDBC4, but you're probably not there yet). > > The chief advantage of doing that is that it will get you *completely* > out of the connection management business - you can let iBATIS handle > it all, which will VASTLY simplify your entire system. > > Larry > Thanks Larry. I suppose you are talking about the DataSourceFactory interface? I'll definitely give it a try. It sounds like many of my ibatis integration code can be go away this way, which will be great. By the way, if you are concerned about versioning problem with DataSource, check out http://dimple.codehaus.org, it allows one to implement only the relevant methods and leave the irrelevant UnsupportedOperationException. Ben -- View this message in context: http://www.nabble.com/NPE-when-using-user-connection-and-sub-select-statement-tf2931416.html#a8199910 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.