In a properties file, referenced useing the property tag...

On 9/18/05, Dionisio Egiluz Ruiz de Zárate <[EMAIL PROTECTED]> wrote:
>  
> and where do you declare the baseURL variable? 
> where do you put it the value? 
> thanks
>  
>  
> ----- Original Message ----- 
> From: Clinton Begin 
> To: [email protected] 
> Sent: Sunday, September 18, 2005 8:01 PM 
> Subject: Re: Loading SqlMaps relative to SqlMapConfig.xml 
> 
> 
> So you trust your clients then?  Fair enough I suppose, I would still
> recommend against database connections over a LAN/WAN directly from a rich
> client.  You'd be better off with a web service or even a proprietary
> protocol.
> 
> In any case, you can't load relative to the SqlMapConfig.xml file, but you
> can set it programmatically by using a property.  For example:
> 
> <sqlMap url="${baseURL}/Product.xml">
> <sqlMap url="${baseURL}/Category.xml">
> <sqlMap url="${baseURL}/Customer.xml">
> 
> You can then either fix the property in a file, or pass the properties
> programmatically to the SqlMapClientBuilder.
> 
> Cheers,
> Clinton
> 
>  
> On 9/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote: 
> > 
> > Hi Clinton, 
> >   
> > client and webserver could authenticate eachother using https and
> certificates. 
> >   
> >   
> > Volker 
> >   
> >   
> >   
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] Auftrag
> von Clinton Begin
> > Gesendet: Sonntag, 18. September 2005 17:01
> > An: [email protected]
> > Betreff: Re: Loading SqlMaps relative to SqlMapConfig.xml
> > 
> > 
> > Before we answer that question...
> > 
> > How do you plan on securely distributing the SqlMapConfig via a webserver?
> > 
> > Clinton
> > 
> > 
> > On 9/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
> wrote: 
> > > Hi,
> > > 
> > > I'm new to iBATIS and alread read alot through the documentation 
> > > but I couldn't find a way to load sqlmaps relative to the location
> > > of SqlMapConfig.xml. It seems as if contents of attribute 'resource'
> > > is not resolved relative to the location where the SqlMapConfig was
> loaded. 
> > > Is there a way to achieve relative loading of SqlMaps?
> > > 
> > > The background of my questions is as follows:
> > > Suppose a client application would load the SqlMaps from a webserver.
> > > Doing so would eliminate the problem of distributing the SqlMaps and 
> > > SqlMapConfig file to all remote clients.
> > > 
> > > Kind regards
> > > 
> > > Volker
> > > 
> > 
> > 
> 
>

Reply via email to