This trick is useful for quick local testing. You can insert a module into the Modules database from within CQ by selecting "Modules" as the Content Source and then wrapping the module like so:
If you explore the contents of your modules database after executing this, you should see /simple-example.xqy in the list.
Thursday 31 March 2011
Friday 25 March 2011
Java: Connecting to a MarkLogic WebDAV server using Apache Jackrabbit and Digest HTTP Authentication
By default, MarkLogic application servers use digest http authentication, so if you're writing some application layer code that rely on connecting to MarkLogic WebDAV, here's a simple example to get started.
The code below uses Apache Jackrabbit and HttpClient 3.x to connect to a MarkLogic WebDAV application server and logs out a list of all the files in a specific location:
I'm using maven to manage my dependencies for this. If you are too, here's the required dependencies:
The code below uses Apache Jackrabbit and HttpClient 3.x to connect to a MarkLogic WebDAV application server and logs out a list of all the files in a specific location:
I'm using maven to manage my dependencies for this. If you are too, here's the required dependencies:
Labels:
connector jackrabbit,
digest-authentication,
http,
httpclient,
java,
marklogic,
maven,
mvn,
webdav
Tuesday 8 March 2011
Ubuntu / Apache: granting write permissions to a user on /var/www
Something like this should work:
Adapted from these posts:
http://ubuntuforums.org/showthread.php?t=1694505
http://ubuntuforums.org/showthread.php?t=1242763
Adapted from these posts:
http://ubuntuforums.org/showthread.php?t=1694505
http://ubuntuforums.org/showthread.php?t=1242763
Subscribe to:
Posts (Atom)