In my mental model XCC and XQuery are more like JDBC and SQL stored procedures 
than Java RPC. Your mileage may vary.

Justin




Justin Makeig
Senior Product Manager
MarkLogic Corporation

Phone +1 650 655 2387

email  [email protected]<mailto:[email protected]>
web    www.marklogic.com<http://www.marklogic.com/>



This e-mail and any accompanying attachments are confidential. The information 
is intended solely for the use of the individual to whom it is addressed. Any 
review, disclosure, copying, distribution, or use of this e-mail communication 
by others is strictly prohibited. If you are not the intended recipient, please 
notify us immediately by returning this message to the sender and delete all 
copies. Thank you for your cooperation.

On Mar 3, 2011, at 2:31 AM, Ron Hitchens wrote:


  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]<mailto:[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]<mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to