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 [email protected] Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com -----Original Message----- From: [email protected] [mailto:[email protected]] 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 Hi, 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... Regards, -- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
