Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 5234 invoked from network); 30 Jan 2009 14:35:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jan 2009 14:35:55 -0000 Received: (qmail 44827 invoked by uid 500); 30 Jan 2009 14:35:49 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 44810 invoked by uid 500); 30 Jan 2009 14:35:48 -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 44798 invoked by uid 99); 30 Jan 2009 14:35:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2009 06:35:48 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [195.156.147.13] (HELO kirsi1.inet.fi) (195.156.147.13) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jan 2009 14:35:40 +0000 Received: from [127.0.0.1] (192.194.190.99) by kirsi1.inet.fi (8.5.014) id 48FC5AC9046CA665 for user-java@ibatis.apache.org; Fri, 30 Jan 2009 16:35:24 +0200 Message-ID: <49831023.2050704@jadecon.fi> Date: Fri, 30 Jan 2009 16:35:15 +0200 From: Kai Kousa User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Re: Using iBatis outside servlet container References: <4982CBA6.8080208@mail.footprint.de> <797273.92427.qm@web25907.mail.ukl.yahoo.com> <2f55db670901300624g532e011ei1e10d7dbc371e07b@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Mock JNDI sounds useful as it would prevent separate configs for web-app and the console-app. Can you give any pointers for doing this? I'm not very familiar with JNDI Kai Larry Meadors wrote: > You could also do a very simple mock JNDI implementation - it's less > than 100 lines of code. > > That way you could use the same sqlmapconfig.xml in both places. > > Larry > > > On Fri, Jan 30, 2009 at 7:24 AM, Nathan Maves wrote: > >> There is nothing in the IB library that is tied to a servlet container. >> You can use any of the various datasources from IB. c3p0 is just another DB >> connection pool so use it just as you would dbcp or the built in SIMPLE db >> connection pool. >> Nathan >> >> On Fri, Jan 30, 2009 at 5:14 AM, charlie bird wrote: >> >>> I've got similar question >>> >>> Has anyone done this sort of thing with c3p0? >>> Can I use the same datasource xml that would be used for servlet container >>> config? >>> >>> Thanks >>> >>> Charlie >>> >>> --- On Fri, 30/1/09, Jan Kriesten wrote: >>> >>> >>>> From: Jan Kriesten >>>> Subject: Re: Using iBatis outside servlet container >>>> To: user-java@ibatis.apache.org >>>> Date: Friday, 30 January, 2009, 9:43 AM >>>> Hi, >>>> >>>> >>>>> What do I have to do in order to provide a data source >>>>> >>>> to iBatis? >>>> >>>> use >>>> >>>> >>>> >>>> >>> value="..."/> >>>> ... >>>> >>>> >>>> >>>> in your sqlMapConfig. You're not bound to JNDI with >>>> iBATIS. >>>> >>>> Best regards, --- Jan. >>>> >>> >>> >> > > >