[MarkLogic Dev General] Inserting in a file system module database

David Lee David.Lee at marklogic.com
Sat Aug 25 09:46:32 PDT 2012

I don't believe you can write to files directly from the server.
It would be a huge gaping security hole if you could ... (and/or would require a complex set of authentication )

But back up a level
Database backed Modules are intended for what you are doing.
I am not sure what you mean by  the Module's database default Module database ... Databases don't have Modules databases associated, App servers do. 

Now if you create an App server, yes it defaults to a filesystem backed Module DB.
This is just a default, not a recommendation.    For some uses its easier to put xquery files into a filesystem then  a DB.
But for other users the opposite is  true.  If you want to write module files directly from within MarkLogic you should use a DB backed modules directory.     There is also the advantage that it then participates in all the other databasey things like backups, transactions etc.

David Lee
Lead Engineer
MarkLogic Corporation
dlee at marklogic.com
Phone: +1 812-482-5224
Cell:  +1 812-630-7622

-----Original Message-----
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of Florent Georges
Sent: Saturday, August 25, 2012 12:08 PM
To: MarkLogic General ML
Subject: [MarkLogic Dev General] Inserting in a file system module database


  Through an App Server, I insert some modules dynamically in a
database.  How can I do that if the database is on the file system
(which is the case for the default Modules database)?  As far as
I know, xdmp:document-insert() does not work in that case...

Florent Georges
General mailing list
General at developer.marklogic.com

More information about the General mailing list