On 03/21/2013 10:34 AM, Florent Georges wrote:
Hi,
I was looking on http://docs.basex.org/ after documentation on integrating BaseX within a Java application, but couldn't find any. Did I miss them?
In a few words, I have a Java webapp running in Tomcat, and I'd like to use a BaseX database for the storage. Can I embed it completely? Do I have to start a server as a completely separate process?
Regards,
Hopefully someone has a better answer than this. I am looking at that right now, too. It looks to me like you can embed it using LocalSession. I am basing this on org.basex.test.server.LocalSessionTest in the tests in basex directory on github.
There are other examples there of starting client and server.
I wish that the code did not use wildcard imports everywhere.
Kendall