[MarkLogic Dev General] To access two database via single HTTP
mano07good at yahoo.co.in
Thu Jan 21 23:40:53 PST 2010
We are eager to know how the production environment will be?
In real environment is this possiable to have a single http server connected with 2 different database. So that requests from http server will get executed in both the databases without hardcoding database name in xdmp:eval/xdmp:invoke?
From: Justin Makeig <Justin.Makeig at marklogic.com>
To: General Mark Logic Developer Discussion <general at developer.marklogic.com>
Sent: Wed, 30 December, 2009 10:06:58 PM
Subject: Re: [MarkLogic Dev General] To access two database via single HTTP server
xdmp:eval <http://developer.marklogic.com/pubs/4.1/apidocs/Ext-6.html#xdmp:eval> and xdmp:invoke <http://developer.marklogic.com/pubs/4.1/apidocs/Ext-6.html#xdmp:invoke> can be used to evaluate code against another database. In general, though, I'd try to stay away from these for performance reasons as well as overall maintainability of your code. Can you give some more details about your application and content? One option might be to isolate your content using collections or directories in the same database.
Mark Logic Corporation
999 Skyway Road
San Carlos, CA 94070
+1 650 655 2387 Phone
justin.makeig at 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 Dec 30, 2009, at 4:53 AM, mano m wrote:
>As per my understanding single HTTP server can be connected to single database alone.
>My content is stored in two database. Is it possible to access the content stored in 2 different database via single HTTP server connection?
>Is there any other way to attain this? Or Do I need to create separate HTTP server for each database?
>Thanks & Regards,
>The INTERNET now has a personality. YOURS! See your Yahoo! Homepage._______________________________________________
>General mailing list
>General at developer.marklogic.com
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General