Niels Nes wrote:
On Tue, Feb 05, 2008 at 02:30:21PM +0100, Michael wrote:
Hi folks,
I just installed MonetDB. I tried to run the simplest examples and failed. :-( The MAL Reference does not semm really helpful though to me.
My questions is, is it possible to use the DB as an embedded server with a Java application? The exampled displayed a C example only. Is it possible to communicate to the server with MAL?
I want to write a backend for the Apache Directory Server. I want MonetDB to be it. I want to transform LDAP requests to MAL and get results back form the server.
Is this possible at all with this DB? FYI: I am a C illiterate
Interesting project. Using MAL at the java/jdbc layer is however only supported with a fixed set of rules. The most important one being, you have to take care of sending the right 'result sets' from the server, ie sent correct tabular results.
This means that it couldn't be possible from some point develop my solution. The otherway around would me that I would have to write a generic LDAP frontend for the DB just like the SQL or XQuery one? I see here 2 problems, I have only 3 month and I am C illiterate. Not feasable for me :-(
Embedding of monetdb is only possible with C code. So if wrapping using jni (or so) is possible then monet could run with java as well.
This isn't the problem. They could talk over TCP/IP through localhost too.
Could you point us to the examples which failed for you, probably we should improve the documentation.
For instance this one: # MonetDB server v5.2.2, based on kernel v1.20.0 # Serving database 'demo' # Compiled for i686-pc-win32/32bit with 32bit OIDs dynamically linked # Copyright (c) 1993-2007 CWI, all rights reserved # Visit http://monetdb.cwi.nl/ for further information #warning: please don't forget to set your vault key! #(see C:\Programme\CWI\MonetDB5\etc\monetdb5.conf) # Listening for connection requests on mapi:monetdb://127.0.0.1:50000/ # MonetDB/SQL module v2.20.2 loaded
function user.helloWorld(msg:str):str; io.print(msg); msg:= "done"; return msg; end user.hellowWorld; !SyntaxException:parseError:end user.hellowWorld; !SyntaxException:parseError: ^non matching end label, overruled
-- <NO> OOXML - Say NO To Microsoft Office broken standard http://www.noooxml.org