Mano, I'm not sure what you mean by "get executed in both the database". A MarkLogic app server executes code, by default, against one database. That database can use collections, directories, and permissions, for example, to segregate content. xdmp:invoke and xdmp:eval allow an escape hatch to execute code against another database. Others on the list and I can probably give you more relevant advice if you can provide more details about the problem you're trying to solve and how you've configured your environment.
Justin Justin Makeig Product Manager Mark Logic Corporation 999 Skyway Road Suite 200 San Carlos, CA 94070 +1 650 655 2387 Phone [email protected]<mailto:[email protected]> www.marklogic.com<http://www.marklogic.com/> <http://www.marklogic.com/><http://www.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 Jan 21, 2010, at 11:40 PM, mano m wrote: Hi, 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? With regards, Mano ________________________________ From: Justin Makeig <[email protected]<mailto:[email protected]>> To: General Mark Logic Developer Discussion <[email protected]<mailto:[email protected]>> Sent: Wed, 30 December, 2009 10:06:58 PM Subject: Re: [MarkLogic Dev General] To access two database via single HTTP server Mano, 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. Justin Justin Makeig Product Manager Mark Logic Corporation 999 Skyway Road Suite 200 San Carlos, CA 94070 +1 650 655 2387 Phone [email protected]<mailto:[email protected]> www.marklogic.com<http://www.marklogic.com/> <http://www.marklogic.com/><http://www.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: Hi, 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, Mano The INTERNET now has a personality. YOURS! See your Yahoo! Homepage._______________________________________________ General mailing list [email protected]<mailto:[email protected]> http://xqzone.com/mailman/listinfo/general ________________________________ The INTERNET now has a personality. YOURS! See your Yahoo! Homepage<http://in.rd.yahoo..com/tagline_yyi_1/*http://in.yahoo.com/>._______________________________________________ General mailing list [email protected]<mailto:[email protected]> http://xqzone.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
