Dear Igor,
thanks for your observation. This is something I wanted to have a look at for a longer time already, and your e-mail finally got me triggered. In the latest update (available via [1] and [2]), the Java process will only be terminated if the main() method of the BaseX, BaseXClient, BaseXServer or JaxRxServer class is called.
Hope this helps, Christian
[1] https://github.com/BaseXdb/basex [2] http://files.basex.org/releases/latest/ ___________________________
On Tue, Aug 9, 2011 at 5:17 PM, Igor Farinic igor.farinic@evolveum.com wrote:
Hi,
in our junit tests we are starting BaseX server in embedded mode. The problem is that, if there is some problem (e.g. server socket is unable to bind to port), basex server will terminate whole process. When the process is terminated during automatic junit test execution, then maven surefire plugin will report that 0 test were executed and all passed ... and we will never know that there are some problems in our application code :(
I am using following command to initialize BaseX server: server = new BaseXServer("-p" + port, "-d", "-D", "-s");
Environment: BaseX 6.7.1
regards, Igor Farinic
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk