ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "REMIJAN, MICHAEL J [AG-Contractor/1000]" <michael.j.remi...@monsanto.com>
Subject RE: Using JNDI programmatically.
Date Wed, 13 Jul 2005 15:18:11 GMT
Yup perfectly.  Thanks!!!

-----Original Message-----
From: Larry Meadors [mailto:larry.meadors@gmail.com] 
Sent: Wednesday, July 13, 2005 8:52 AM
To: user-java@ibatis.apache.org
Subject: Re: Using JNDI programmatically.

Yes.

Any attributes in in your xml file using ${myValue} notation will be
substituted at runtime with the value in the properties object passed
in that "myValue" is the key to.

Does that makes sense?

Larry


On 7/13/05, REMIJAN, MICHAEL J [AG-Contractor/1000]
<michael.j.remijan@monsanto.com> wrote:
>  
> 
> Hello List: 
> 
> I am trying to figure out how I can use the
> SqlMapClientBuilder.buildSqlMapClient(Reader reader, Properties props) to
> programmatically tell SqlMap the JNDI lookup name for my datasource.  Our
> existing application has this information in our own properties file.  I'd
> like to create the <sqlMapConfig> file with a JNDI <dataSource> type but
use
> the above method and properties file to programmatically pass in the
> "DataSource" property value.  Is this possible? 
> 
> Michael. 
> 
> _________________________________________________________________________________
> 
> This e-mail message may contain privileged and/or confidential information,
> and is intended to be received only by persons entitled to receive such
> information.  If you have received this e-mail in error, please notify the
> sender immediately.  Please delete it and all attachments from any servers,
> hard drives or any other media.  Other use of this e-mail by you is strictly
> prohibited. 
> 
> All e-mails and attachments sent and received are subject to monitoring,
> reading and archival by Monsanto.  The recipient of this e-mail is solely
> responsible for checking for the presence of "Viruses" or other "Malware". 
> Monsanto accepts no liability for any damage caused by any such code
> transmitted by or accompanying this e-mail or any attachment. 
> 
> _________________________________________________________________________________
_________________________________________________________________________________ 

This e-mail message may contain privileged and/or confidential information, and is intended
to be received only by persons entitled to receive such information.  If you have received
this e-mail in error, please notify the sender immediately.  Please delete it and all attachments
from any servers, hard drives or any other media.  Other use of this e-mail by you is strictly
prohibited. 

All e-mails and attachments sent and received are subject to monitoring, reading and archival
by Monsanto.  The recipient of this e-mail is solely responsible for checking for the presence
of "Viruses" or other "Malware".  Monsanto accepts no liability for any damage caused by any
such code transmitted by or accompanying this e-mail or any attachment. 
_________________________________________________________________________________

Mime
View raw message