First off, this is my first week with BaseX, and I'm extremely pleased with both performance and ease of use. Thank you.
I really like the interface provided by jax-rx, but I want to deploy it inside of a war rather than start a separate server. While I considered starting the basex server in ServletContextListener, I noticed that LocalSession now supports all of the operations of ClientSession. I was hoping that you'd consider making the jax-rx's selection of LocalSession or ClientSession based upon a system property. The first patch above changes references to ClientSession and LocalQuery to Session and Query respectively in BXOutput and BXJaxRX. You should be able to apply it without any concerns. The second patch introduces a SessionFactory that is used by BXCode to create Sessions appropriately. It worked for me, but as I said this is my first week with the tool. There might be side effects that I didn't intend or a better place to introduce this functionality.
Any time frame on releasing a 6.7.1 that includes your full LocalSession implementation?
Thanks, Aaron
Dear Aaron,
thanks a lot for your work and support, we are very glad you like BaseX and our infrastructure. I added your requests on GitHub, as it provides a nice interface to review the code [1] :-)
Now everybody will be able to play around and discuss, and eventually add them to the code base.
Thanks!
Michael [1] https://github.com/BaseXdb/basex-api/pulls Feel free to create your own fork too, if you like. :-)
Am 22.07.2011 um 13:18 schrieb Donovan, Aaron [USA]:
First off, this is my first week with BaseX, and I’m extremely pleased with both performance and ease of use. Thank you.
I really like the interface provided by jax-rx, but I want to deploy it inside of a war rather than start a separate server. While I considered starting the basex server in ServletContextListener, I noticed that LocalSession now supports all of the operations of ClientSession. I was hoping that you’d consider making the jax-rx’s selection of LocalSession or ClientSession based upon a system property. The first patch above changes references to ClientSession and LocalQuery to Session and Query respectively in BXOutput and BXJaxRX. You should be able to apply it without any concerns. The second patch introduces a SessionFactory that is used by BXCode to create Sessions appropriately. It worked for me, but as I said this is my first week with the tool. There might be side effects that I didn’t intend or a better place to introduce this functionality.
Any time frame on releasing a 6.7.1 that includes your full LocalSession implementation?
Thanks, Aaron <0002-Allow-creation-of-local-or-client-sessions-for-jax-r.patch><0001-Use-references-to-abstract-classes-Query-and-Session.patch>_______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Aaron,
thanks for your feedback and the two diligent patches you provided; and thanks Michael for converting them to pull requests. I have (slighty modified and) added them to the main project. Some open issues:
- if the local mode is used, it's important that no other Context instance will be specified. Otherwise, databases may get corrupt if multiple threads perform write operations on the same databases. This is why it might make more sense to initialize the context in the JaxRxServer instance. How do you currently start the JettyServer?
- next, not all test cases in the JaxRxTest are correctly evaluated in the local operation mode. If you have some time left, it would be great if you could have a look at those issues. Feel free to ask for more.
I'm glad to tell you that BaseX 6.7.1 will already be released next week.
Stay tuned, Christian ___________________________
On Fri, Jul 22, 2011 at 1:18 PM, Donovan, Aaron [USA] donovan_aaron@bah.com wrote:
First off, this is my first week with BaseX, and I’m extremely pleased with both performance and ease of use. Thank you.
I really like the interface provided by jax-rx, but I want to deploy it inside of a war rather than start a separate server. While I considered starting the basex server in ServletContextListener, I noticed that LocalSession now supports all of the operations of ClientSession. I was hoping that you’d consider making the jax-rx’s selection of LocalSession or ClientSession based upon a system property. The first patch above changes references to ClientSession and LocalQuery to Session and Query respectively in BXOutput and BXJaxRX. You should be able to apply it without any concerns. The second patch introduces a SessionFactory that is used by BXCode to create Sessions appropriately. It worked for me, but as I said this is my first week with the tool. There might be side effects that I didn’t intend or a better place to introduce this functionality.
Any time frame on releasing a 6.7.1 that includes your full LocalSession implementation?
Thanks,
Aaron
basex-talk@mailman.uni-konstanz.de