You got me wrong Erik. I meant I have xqy files in modules db and data in 
content database. We are on the same page.  I thought xdmp:database() would 
return database id of modules database which is not the case. Anyway I got my 
thing working.

Thanks Brad and Erik for your quick responses.

From: [email protected] 
[mailto:[email protected]] On Behalf Of Erik Hennum
Sent: Thursday, September 05, 2013 11:21 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] retrieve database id without passing 
applicationName

Hi, Gajjala:

The approach you describe (putting modules in a database that an appserver 
treats as a content database instead of as a modules database) is unusual.

Can you explain what you are trying to accomplish with this approach?  There 
might be a more straightforward way to do the same thing.

Erik Hennum
________________________________
From: 
[email protected]<mailto:[email protected]>
 [[email protected]] on behalf of 
[email protected]<mailto:[email protected]>
 [[email protected]]
Sent: Thursday, September 05, 2013 9:04 AM
To: [email protected]<mailto:[email protected]>
Subject: [MarkLogic Dev General] retrieve database id without passing 
applicationName
All,
Is there any method/logic which returns database id/name without passing 
application id/name. Basically, It has to figure from the appserver where the 
xqy is being is hit.

Use case  - My xqy files are in a modules database and a application server 
points to this modules database and actual data database. So, my xqy files 
should figure out the actual database without passing the application name.

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

Reply via email to