Hi, I'm looking for a not-so-complicated way to retrieve the host name (i.e. the name that is displayed on top of each page in the MarkLogic admin interface). Why is there a xdmp:get-request-path, xdmp:get-request-protocol, xdmp:get-request-url, but no xdmp:get-host-name?
Of course, I've ploughed through the Admin/ code, and finally found the function get-session-host-node() in session.xqy, but it also depends on an $hosts.xml variable which in turn uses yet another library. In the end it's very involved if all you want to do is to display the hostname the current application is running on (I guess the fact that it's not easy probably has its reasons in the fact that more complicated scenarios involving clustering exist that need to be accounted for). cheers, Jakob. _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
