How to Connect to BaseX in Java

Sunday, 14 February 2010 · 2 messages
P
paulomgj14 Feb 2010 20:20 #

Hi,

I would like to know how to connect to BaseX using XQJ. I'm searching for the connection string (where i can put the login, password, port, etc.) to create a XQDataSource but I'm not finding it.

Thansk in advance

CG
Christian Grün14 Feb 2010 20:26 #

Hello,

Quoted text · paulomgj · 1 line
> I would like to know how to connect to BaseX using XQJ. I'm searching for the connection string (where i can put the login, password, port, etc.) to create a XQDataSource but I'm not finding it.

Note that the XQJ implementation of BaseX works only locally. You find a simple example at...

http://basex.org/code.php?code=XQJQuery

The latest version in the repository allows users to specify login and password information; please have a look at the following example:

https://svn.uni-konstanz.de/dbis/basex/trunk/examples/src/main/java/org/basex/examples/xqj/tutorial/Part2.java

Hope this helps, Christian


⚡Generated with XQuery