ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From charlie bird <zebthe...@yahoo.co.uk>
Subject Re: Using iBatis outside servlet container
Date Fri, 30 Jan 2009 12:14:46 GMT
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 <kriesten@mail.footprint.de> wrote:

> From: Jan Kriesten <kriesten@mail.footprint.de>
> 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
> 
> <transactionManager type="JDBC">
>   <dataSource type="SIMPLE">
>     <property name="JDBC.Driver"
> value="..."/>
>     ...
>   </dataSource>
> </transactionManager>
> 
> in your sqlMapConfig. You're not bound to JNDI with
> iBATIS.
> 
> Best regards, --- Jan.


      

Mime
View raw message