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=""> <sqlMap url=""> <sqlMap url="">
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]]Im Auftrag von Clinton Begin
Gesendet: Sonntag, 18. September 2005 17:01
An: [email protected]
Betreff: Re: Loading SqlMaps relative to SqlMapConfig.xmlBefore 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
