ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brice Ruth <bdr...@gmail.com>
Subject Re: Does the sqlMapConfig look at system properties?
Date Thu, 03 Mar 2005 14:11:30 GMT
Can you use JNDI? This way, you can store your created datasource in
JNDI and if you configure iBATIS to use that JNDI resource, then your
problem is solved - iBATIS will not create a new instance, it will
assume that the JNDI DataSource is ready to be used.

BR


On Thu, 03 Mar 2005 09:05:52 +0000, Eduardo Piva <eduardo@gwe.com.br> wrote:
> Hi Scott, I need something like that either. I have a instance of a
> datasource already created and I want to make iBatis use this instance.
> It's a DBCP instance. Is there anyway I can set it, without using XML
> (since iBatis will instantiate a new one)?
> 
> Thanks,
> 
> Eduardo.
> 
> Em Ter, 2005-03-01 às 17:38 -0500, Scott Zhu escreveu:
> > I guess the problem I'm trying to solve is that I don't have a
> > pre-defined property file I can include in the sqlMapConfig.xml as the
> > resource. But some of my properties in there need to be parameterized.
> > For example, the DataSource value, I will fetch it from a
> > configuration server at runtime. So my question is, is there a way
> > that I can feed this information into the sqlMapConfig map as I build
> > my sqlMapClient instance? Thanks for your help.
> >
> 
>

Mime
View raw message