[basex-talk] Access variable database without locking all databases

2019-03-29 Thread Leah Chatkeonopadol
Hi, I'm using BaseX as a database for a web application with RESTXQ API endpoints. Each endpoint has a database name specified as a path param, for example: declare %rest:GET %rest:path('data/{$database}/read') function readData($database as xs:string) { let $doc := fn:doc($database |

Re: [basex-talk] Quick Windows issue: Invalid reply on port 1984, works fine on port 8984

2019-03-29 Thread Jim Salmons
Oops... In my prior message I meant that the basexserver.bat script only starts the service on port 1984 not 8984. Sorry for the unseen error. BTW, it is the case that when you do the basexhttp.bat script on the command-line without the '-S' option, the response messages streamed to the comman

Re: [basex-talk] Quick Windows issue: Invalid reply on port 1984, works fine on port 8984

2019-03-29 Thread Jim Salmons
Hi Marco! Your tip put me on the right track... I have a handle on how things work now and, so, I'll share my understanding in hope that it helps another nooby dev, especially if under Windows... CONTEXT: I am pretty sure that my confusion came from working through the Startup page of the Gett

[basex-talk] Using local xqj

2019-03-29 Thread Gardner, Arthur
Hi! I've downloaded BaseX 9.2 (Windows distro). One thing I want to try is the xqj implementation, running locally on the server. I found the class net.xqj.basex.local.BaseXXQDataSource But when I try getConnection() on an instance of this, I get the following: java.lang.NoClassDefFoundError:

Re: [basex-talk] Quick Windows issue: Invalid reply on port 1984, works fine on port 8984

2019-03-29 Thread Marco Lettere
Hi Jim, I think port 1984 is not meant to be connected to over HTTP. It's a pure socket connection that ships BaseX internal client-server protocol. When you connect to that port you probably have to use the Python client API in order to get your BaseX COMMANDS (not HTTP requests) serialized o