Hi there,
I know that .xqm script are installed directly on the filesystem (compared to Exist where the scripts are stored directly within the database).
Is there some way to install RESTXQ through some (HTTP) API on the filesystem?
Background of my question: I want to deploy RESTXQ script to a pre-installed BaseX server where I not necessarily have access to over HTTP. In Exist-DB I can directly upload the scripts over WebDAV (which is very convenient) ...now looking into a similar option in order for BaseX in order keep the deployment of applications as easy as possible ("one click" installation).
Andreas
Hello Andreas,
I do not quite understand - What use is a web service if you do not have access over HTTP? You might have to tunnel, but this might be just the right action.
RESTXQ files don't have to be installed, they are just read in from the file system. Hence, every file transfer mechanism you want could be theoretically used to transfer the files, e.g. ssh, ftp or I guess also WebDAV is the RESTXQ-directory is used by some WebDAV server (excuse me if this is totally wrong, I have never used WebDAV, but it should work somehow...).
Cheers, Dirk
On 08/24/2015 07:39 AM, Andreas Jung wrote:
Hi there,
I know that .xqm script are installed directly on the filesystem (compared to Exist where the scripts are stored directly within the database).
Is there some way to install RESTXQ through some (HTTP) API on the filesystem?
Background of my question: I want to deploy RESTXQ script to a pre-installed BaseX server where I not necessarily have access to over HTTP. In Exist-DB I can directly upload the scripts over WebDAV (which is very convenient) ...now looking into a similar option in order for BaseX in order keep the deployment of applications as easy as possible ("one click" installation).
Andreas
Background:
is my project which aims to support both ExistDB and BaseX.
In ExistDB I can manage my content, assets and code (RESTXQ) scripts solely over the WebDAV layer of ExistDB which makes deployments really easy. Deploying code to BaseX requires access to the filesystem because the scripts live on the filesystem and not in the database (existed).
So the question is: is there some way to send code over HTTP to BaseX in order to be deployed in some way in the right place on the filesystem.
-aj
On 24 Aug 2015, at 8:12, Dirk Kirsten wrote:
Hello Andreas,
I do not quite understand - What use is a web service if you do not have access over HTTP? You might have to tunnel, but this might be just the right action.
RESTXQ files don't have to be installed, they are just read in from the file system. Hence, every file transfer mechanism you want could be theoretically used to transfer the files, e.g. ssh, ftp or I guess also WebDAV is the RESTXQ-directory is used by some WebDAV server (excuse me if this is totally wrong, I have never used WebDAV, but it should work somehow...).
Cheers, Dirk
On 08/24/2015 07:39 AM, Andreas Jung wrote:
Hi there,
I know that .xqm script are installed directly on the filesystem (compared to Exist where the scripts are stored directly within the database).
Is there some way to install RESTXQ through some (HTTP) API on the filesystem?
Background of my question: I want to deploy RESTXQ script to a pre-installed BaseX server where I not necessarily have access to over HTTP. In Exist-DB I can directly upload the scripts over WebDAV (which is very convenient) ...now looking into a similar option in order for BaseX in order keep the deployment of applications as easy as possible ("one click" installation).
Andreas
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
Hello Andreas,
you can write a RESTXQ-function which does exactly that, i.e. a function accepting files and putting them into the right location in the file system. So once the system is up, deployment can be done via HTTP. You should secure this with a password or token for obvious reasons.
Another way would be to use a servlet container with a web interface (I personally wouldn't recommend Tomcat, but Glassfish instead) and then creating a war-file (.e.g via maven) and uploading it using the REST interface or HTTP management console.
Cheers, Dirk
On 08/24/2015 08:19 AM, Andreas Jung wrote:
Background:
is my project which aims to support both ExistDB and BaseX.
In ExistDB I can manage my content, assets and code (RESTXQ) scripts solely over the WebDAV layer of ExistDB which makes deployments really easy. Deploying code to BaseX requires access to the filesystem because the scripts live on the filesystem and not in the database (existed).
So the question is: is there some way to send code over HTTP to BaseX in order to be deployed in some way in the right place on the filesystem.
-aj
On 24 Aug 2015, at 8:12, Dirk Kirsten wrote:
Hello Andreas,
I do not quite understand - What use is a web service if you do not have access over HTTP? You might have to tunnel, but this might be just the right action.
RESTXQ files don't have to be installed, they are just read in from the file system. Hence, every file transfer mechanism you want could be theoretically used to transfer the files, e.g. ssh, ftp or I guess also WebDAV is the RESTXQ-directory is used by some WebDAV server (excuse me if this is totally wrong, I have never used WebDAV, but it should work somehow...).
Cheers, Dirk
On 08/24/2015 07:39 AM, Andreas Jung wrote:
Hi there,
I know that .xqm script are installed directly on the filesystem (compared to Exist where the scripts are stored directly within the database).
Is there some way to install RESTXQ through some (HTTP) API on the filesystem?
Background of my question: I want to deploy RESTXQ script to a pre-installed BaseX server where I not necessarily have access to over HTTP. In Exist-DB I can directly upload the scripts over WebDAV (which is very convenient) ...now looking into a similar option in order for BaseX in order keep the deployment of applications as easy as possible ("one click" installation).
Andreas
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
In our current setup we are using Docker for BaseX and Exist-DB. So I might be reasonable for me putting some bootstrap RESTXQ script into the container providing all the functionality need for further installation steps from my deployment code...
Thanks Andreas
On 24 Aug 2015, at 8:31, Dirk Kirsten wrote:
Hello Andreas,
you can write a RESTXQ-function which does exactly that, i.e. a function accepting files and putting them into the right location in the file system. So once the system is up, deployment can be done via HTTP. You should secure this with a password or token for obvious reasons.
Another way would be to use a servlet container with a web interface (I personally wouldn't recommend Tomcat, but Glassfish instead) and then creating a war-file (.e.g via maven) and uploading it using the REST interface or HTTP management console.
Cheers, Dirk
On 08/24/2015 08:19 AM, Andreas Jung wrote:
Background:
is my project which aims to support both ExistDB and BaseX.
In ExistDB I can manage my content, assets and code (RESTXQ) scripts solely over the WebDAV layer of ExistDB which makes deployments really easy. Deploying code to BaseX requires access to the filesystem because the scripts live on the filesystem and not in the database (existed).
So the question is: is there some way to send code over HTTP to BaseX in order to be deployed in some way in the right place on the filesystem.
-aj
On 24 Aug 2015, at 8:12, Dirk Kirsten wrote:
Hello Andreas,
I do not quite understand - What use is a web service if you do not have access over HTTP? You might have to tunnel, but this might be just the right action.
RESTXQ files don't have to be installed, they are just read in from the file system. Hence, every file transfer mechanism you want could be theoretically used to transfer the files, e.g. ssh, ftp or I guess also WebDAV is the RESTXQ-directory is used by some WebDAV server (excuse me if this is totally wrong, I have never used WebDAV, but it should work somehow...).
Cheers, Dirk
On 08/24/2015 07:39 AM, Andreas Jung wrote:
Hi there,
I know that .xqm script are installed directly on the filesystem (compared to Exist where the scripts are stored directly within the database).
Is there some way to install RESTXQ through some (HTTP) API on the filesystem?
Background of my question: I want to deploy RESTXQ script to a pre-installed BaseX server where I not necessarily have access to over HTTP. In Exist-DB I can directly upload the scripts over WebDAV (which is very convenient) ...now looking into a similar option in order for BaseX in order keep the deployment of applications as easy as possible ("one click" installation).
Andreas
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
basex-talk@mailman.uni-konstanz.de