ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: [JNDI] datasource on remote server
Date Tue, 25 Oct 2005 15:23:54 GMT
Hmmm...another undocumented feature :(
 From browsing through the source code, it looks like you can do this:
 <dataSource type="JNDI">
 <property name="DataSource" value="somevalue"/>
 <property name="context.java.naming.provider.url"
value="urlToYourProvider"/>
</dataSource>
 Any property with the prefix "context." will be passed to the constructor
of the InitialContext. Try it and let us know if it works - and then maybe
write a FAQ entry on the WIKI.
 Jeff Butler

 On 10/25/05, Eugeny N Dzhurinsky <eugenydzh@jdevelop.com> wrote:
>
> Hello! Just a question - I have DataSource, registered in JNDI on some
> another server. How should I specify the name and location of that
> DataSource
> in db.properties/connection tag?
>
> --
> Eugene N Dzhurinsky
>

Mime
View raw message