xdmp:host-name() http://developer.marklogic.com/pubs/4.2/apidocs/Ext-7.html
(function documentation is scattered about in so many places it's not surprising you wouldn't have found that on first try) On Fri, 4 Mar 2011, Jakob Fix wrote: > 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 > -- David Sewell, Editorial and Technical Manager ROTUNDA, The University of Virginia Press PO Box 400314, Charlottesville, VA 22904-4314 USA Email: [email protected] Tel: +1 434 924 9973 Web: http://rotunda.upress.virginia.edu/ _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
