Hello Furqan,
please keep in mind to always include the mailing list in the list of recipients, as others might also benefit from your questions. Also, other people might have much better answers than I can give you.
Sure you can use a network sniffer to listen to the traffic to/from a BaseX server. It is a standard TCP connection, so this is certainly possible. Just give it a try.
The same holds for using a proxy: It is a very conventional TCP connection, so using a proxy shouldn't be a problem. Nginx should works as well, I guess (although I am by no means an expert in nginx). We have used it quite some times for projects using RestXQ to load-balance requests. How to actually achieve that heavily depends on the proxy you decide to use, so you might have to read up there how to do it in detail.
Cheers, Dirk
On 23/09/14 13:13, Furqan Khan wrote:
Derk,just a little quick question if the using tcp/ip,so assuming my web server is on same machine port 8000 and the basex server is also on same machine port 1984, then will it be possible to use a packet sniffer such as wire shark to see all incoming packets to the baseX-db port 1984... Further more,is it possible for me to use a reverse proxy in front of basex server (a web proxy such as nginx may not work)..,so that i may evaluate incoming packets and trigger my script(java or lua) just as mysql has come up with mysql proxy as a db-proxy(wh invokes lua scripts),is their any such option available with basex or any such third party tool that could be used...i further need to invoke a script,so its not only for analysis purpose.... thanks and regards Furqan
On Tue, Sep 23, 2014 at 1:50 PM, Furqan Khan furqankhan08@gmail.com wrote:
thanks for the reply cheers furqan
On Tue, Sep 23, 2014 at 1:16 PM, Dirk Kirsten dk@basex.org wrote:
Hello Furqan,
welcome to the wonderful world of XML databases ;)
Right now, BaseX only supports TCP/IP for client connect. So by definition it will always be used as default. The details of our server protocol can be found at https://docs.basex.org/wiki/Server_Protocol
Cheers, Dirk
On 23/09/14 07:27, Furqan Khan wrote:
Hi i m a little new to xml-db environment. i need to know what are the possible ways to connect to baseX from
client
api's. just like in sql the clients could connect to db using : 1)named pipes 2)shared memory 3)tcp and etc...
Does basex offer all the functionalists... and by default whats the way a client connects,if the tcp connection is
not
explicitly specified...
regards Furqan
-- Dirk Kirsten, BaseX GmbH, http://basex.org |-- 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