What would keep one from building up a Java library on top of XCC that does what is being asked for?
-Eric PS. I believe Nuno's 'rewrite' open source project is sort of like what you're asking for, but in a REST API, not Java. ________________________________________ From: [email protected] [[email protected]] On Behalf Of Ron Hitchens [[email protected]] Sent: Thursday, March 03, 2011 2:31 AM To: General MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Reg: xcc API methods for XDBC connection There is no such method. With XCC you invoke the main body of an XQuery module. Either you give the URI of a module that already exists in MarkLogic or you provide the text of an XQuery module in your request that is evaluated and then discarded. Don't think of XQuery modules as libraries that you pick functions out of. Think of them as commands to run. There are library XQuery modules, of course, but they are an organizing technique to share code between XQuery main modules. You can send an ad-hoc XQuery with XCC that references library module functions if they are in scope, but it's better to practice to write a main module to do a job and invoke that. An XCC client is better off not knowing about server- resident library modules. On Mar 3, 2011, at 10:17 AM, ambika arumugam wrote: > Hi all, > What is the xcc API method to call the individual methods in the xquery file > via xdbc connection in java environment? > > Regards > Ambika > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general --- Ron Hitchens {mailto:[email protected]} Ronsoft Technologies +44 7879 358 212 (voice) http://www.ronsoft.com +1 707 924 3878 (fax) Bit Twiddling At Its Finest "No amount of belief establishes any fact." -Unknown _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
