Hi Ramachandran,

That shouldn't be much different from how you do it in an http server. Just 
call: xdmp:modules-root(). It returns the root of the current server. Returning 
the root of a different server is a bit more tricky..



Kind regards,

Geert

Van: [email protected] 
[mailto:[email protected]] Namens ramachandran mariappan
Verzonden: dinsdag 19 april 2011 9:35
Aan: General MarkLogic Developer Discussion
Onderwerp: [MarkLogic Dev General] Getting XDBC server root folder name in 
XQUERY

Hi

When i create a xdbc server, i'm giving the server details like servername, 
root, module db and etc.,

Using an xquey application running on an http server, trying to get the xdbc 
server root folder name using xquery by passing only the xdbc uri.

For example,

I created a xdbc server with root as /test. now i will pass only the xdcb 
server uri (xcc//username:passowrd@localhsot:8080) to my xquey file which 
should return /test as output.

Please help me.

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

Reply via email to