I am using Marklogic XCC connector of version 8.0 and my database is Marklogic server 6.0. I get this exception RequestServerException while submitting a query and if transactionMode is also changed.
I searched this out and found that there is a issue with compatibility of XCC 8.0 with previous versions of marklogic server.
Solution I got is to set xcc.txn.compatible property to true. Now I can't find this property or namespace in any marklogic dll(e.g. Marklogic.Xcc).
Any suggestion how and where I can set this property?? Thanks in Advance.
To use XCC, there are several basic things you need to do in your Java code: Import the needed libraries. Set up the ContentSource object to authenticate against MarkLogic Server. Create a new Session object. Add a Request to the session object. Submit the request and get back a ResultSequence object from MarkLogic Server.
This chapter describes some of the basic programming concepts used in XCC. It includes the following sections: Use the Admin Interface to set up an XDBC server, specifying a name, port, a database to access, and other configuration parameters. For detailed instructions how to configure an XDBC Server, see the Administrator's Guide.
Point-in-time queries allow you to query older versions of content in a database. In an XCC application, you set up the options for any requests submitted to MarkLogic Server with the RequestOptions class. One of the options you can set is the effective point-in-time option.
You can submit the connection details when you invoke the XCC program with a URL that has the following form: Also, there are discrete arguments to the constructors in the API to set up any or all portions of the connection details. Point-in-time queries allow you to query older versions of content in a database.
I've asked around and it seems that you can't specify that property with the .NET XCC library. You have a couple options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With