Don't be afraid to make your own protocol, even if it is still XML based.  Web Services are somewhat overrated in my opinion, and are really only useful if you're trying to standardize your interface.  If you have a simple requirement, find a simple solution (albeit a secure and performant one).  You might want to check out REST.

http://www.xfront.com/REST-Web-Services.html

Cheers,
Clinton

On 9/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
thanks alot for your adice. Implementing a web service would eliminate the
problem of distributing the SqlMaps/SqlMapConfig files.

Volker

-----Ursprüngliche Nachricht-----
Von: Clinton Begin [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 18. September 2005 20:01
An: [email protected]
Betreff: 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=""><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.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