Hello Christian

Thank you for your prompt response.

YES! I’ve been able to start the GUI, store files, perform XQueries against the stored documents and everything looks great! (Side Note: There is just one issue when exiting the GUI because in my Mac the application keeps running and the main menu is still visible (but the main window is made not visible). This might be due to a non daemon thread that is still running on the JVM or something like that because of the nuances of Swing. I can debug that later… This is not a big issue for me at this time.)

I’ve also tested to launch the basexserver using the same sample database I created with the GUI. It starts fine.

Then, I use basexclient on another terminal and I can connect to the basexserver, execute LIST command and I see all databases created with the GUI. Then I can run XQueries and everything works like a charm.

I tested to stop the basexserver and start the basexclient and, obviously, I receive a Connection failed (port: 1984) that is OK because there is no server running.

The problem is that I want to have the same client-server architecture using a “web-client” running restxq. I’ve successfully deployed the WAR file on tomcat and I’ve tuned the parameters on web.xml to access the same “files” the basexserver is serving but this is not a real “client-server” architecture because the JVM on the web application server is not connecting to the basexserver but just sharing the same files! In the example above, I can stop my basexserver and the web application is still running because it hosts its own server.

I’m a experience developer and I think I might be capable of help you decouple the processing of the restxq message and the execution of the query on a remote server. At least if I’d access to the source code I could eventually understand why I cannot properly do that now.

Best regards
Ignacio

 


El 27 jul 2017, a las 14:11, Christian Grün <christian.gruen@gmail.com> escribió:

Hola Ignacio,

Welcome to the list.

Usually, the best way to get started is to download the ZIP or EXE
version of BaseX and follow the instructions in our documentation [1]:

• If you start the BaseX GUI, you can create databases, run queries,
view your data via various visualizations, etc.
• If you start the BaseX HTTP Server, you can simply open your browser
and visit http://localhost:8984/dba/ to access the web-based
administration interface.

Now some more specific replies on your questions:

I’ve been trying to configure the web administration portal to be used with
a remote server with no success. It looks like it is not possible to take
advantage of the client-server architecture from the Web Application
http://docs.basex.org/wiki/Web_Application

What kind of remote server do you work with? Indeed BaseX provides a
client/server architecture – which will be made available after
starting the BaseX Server – but I assume you are rather interested in
the HTTP services, such as RESTXQ? Have you already tried to embed
BaseX as a servlet?

Saludos de Alemania,
Christian

[1] http://docs.basex.org/wiki/Startup