Questions about server protocol
Friday, 14 April 2017 · 2 messages
SF
Sebastián Filippini14 Apr 2017 14:05 #
------------------------------------------------------------------------
Hello.
This is my first post on this mailing list.
I'm currently trying to create an Apache Camel component for using BaseX database.
I have two questions about BaseX server protocol.
1) Does exist a command to test connection (eg. ping or echo)?
2) Can I trust in error message text for detecting error conditions?
Best regards,
Sebastián Filippini
CG
Christian Grün14 Apr 2017 14:19 #
Dear Sebastián,
Welcome to the list.
Quoted text · Sebastián Filippini · 1 line
> 1) Does exist a command to test connection (eg. ping or echo)?
Not really. Instead, you can try to register a client. If you get a response, the connection is available.
Quoted text · Sebastián Filippini · 1 line
> 2) Can I trust in error message text for detecting error conditions?
The returned result code of commands (00: ok, 01: error) indicates an operation was successful [1]. It depends on the specific command or query which error messages will be returned.
Hope this helps,
Christian
[1] http://docs.basex.org/wiki/Server_Protocol
Written for BaseX 8.6. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery