Hi Joseph,
You could try to copy your Java library into the 'lib' directory of BaseX. After that, you can directly access it via XQuery Java Bindings [1].
Hope this helps, Christian
[1] http://docs.basex.org/wiki/Java_Bindings
I have developed a restxq service, which executes a command via the process module. The command is actually java (java -cp ...) which actionates a linguistic parser: unfortunately the time of loading/opening of the java process is quite long (14 sec., also at the command line) even if the actual parsing is very fast. I am looking for a way to keep such a java process "open", so that a user's request can be satisfied much much quickier (while now the java process is opened and then closed for each single request). I am not sure this is a question for Basex users (the problem is only due to java), but I am not a java developer at all and I am trying to understand what can be done in this respect. Thanks!
Joseph