Hi Florent, As an Oxygen user I find your question rather interesting. I had been using Oxygen to create and test modules on my local development system and after testing them to upload them to MarkLogic using a webDAV folder that I configured under my Network Places in Windows XP. I never thought of directly modifying and even trying to run the modules in Oxygen from the MarkLogic database. I suppose there is one big caveat associated with trying to edit the modules in the Modules database directly from Oxygen and that is source code control. If for development purposes you're not too concerned about modifying and potentially rendering modules temporarily unusable by other users or other code, then accessing and modifying the modules from Oxygen is definitely possible, but I don't recommend this approach as sooner or later you'll want to use SVN or some other source code control to modify and test before promoting the modules into your production environment (unless of course you can implement source code control and promotion directly within MarkLogic which would be pretty cool).
Having said all that, I just set up and XDBC connection in Oxygen that points to the modules database. I already had a webDAV app server for my modules database, but I had to configure an XDBC app server to point to the modules database in order to create the database connection in Oxygen. The database connection requires both an XDBC connection and a webDAV port which I was able to fill in using the xdbc and webDAV app server ports I configured in MarkLogic. Next I went into the database perspective in Oxygen (which uses webDAV) and was able to open up the Modules database and drill down to find any modules of interest. I opened an xquery module and Oxygen recognized it as an xquery file. I didn't try running any of these xquery modules in Oxygen, but I suppose you could. You would have to set the database location of the content that you want the module to act upon to something other then the Modules database. The interesting thing is that the modules will be executed from Oxygen in the context of the XDBC connection using the xcc.jar class required for setting up the MarkLogic datasource in Oxygen. It would also be interesting to see if you can use this approach to create new modules in Oxygen so that they are created in the Module database. I'm not sure I want to try that in my environment. I hope this helps in some way. Tim Meagher - AAOM Consulting P.S. It would be cool to see MarkLogic expand the CQ application to a full blown application test and development environment integrated with SVN that supports auto-promotion of xqueries from a development modules database into a production module database. -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Florent Georges Sent: Friday, March 06, 2009 5:02 AM To: MarkLogic General ML Subject: [MarkLogic Dev General] Edit library modules through WebDAV? Hi, I have ML installed on a virtual box for developing purposes, and I'd like to configure oXygen to directly edit library modules in this instance. I thought it would be possible as it supports WebDAV. But when I add a resource to the database with the oXygen's Database Explorer, it is added to the documents database, not with the modules, so I can't refer to it using "import module" if I am right. Here are the servers involved: - HTTP: database=Documents, modules=(file system) - WebDAV: database=Documents - XDBC: database=Documents, modules=(file system) I *guess* I could change the HTTP's modules to the Modules database, and create additional WebDAV and XDBC servers bound to this database, but I would like to keep it bound to (file system). Is it possible? Did I missed or mixed up something? Regards, -- Florent Georges http://www.fgeorges.org/ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
