On 11/03/2014 03:59 PM, Christian Grün wrote:
Second, where to put the files? I can ssh into the application and transfer files, but where do I put database files I already created with the Windows version of BaseX? And where the .xq files?
…which is why I would be glad if someone else working with the WAR distribution could give feedback on this. ;)
Christian
In my short experience with BaseX I use it as WAR format, deployed under Tomcat or Jetty. In the same place (webapps folder) is my application.
Databases will be created under basex. For .xq files I have an folder under my application (mysqrepo).
In basex/WEB-INF/web.xml I created an context-param entry, to know basex to load queries:
<context-param> <param-name>org.basex.restxqpath</param-name> <param-value>../myapp/mysqrepo</param-value> </context-param>
Do not know yet how good is this configuration, but so I can work and control queries for each my application separately. I'd like to hear other opinions too, about security, performance etc.
Glad if you help, Ioan