Tuesday, March 17, 2015

Xpages : Connect RestService to a different database/server




Recently I found that it was not so well known that you actually can specify a server in the databaseName property of the Rest Service in Xpages.

So let's share this with the world ;-)

In the databaseName property of your RestService:

var databasePathName = "MyDatabase.nsf";
var serverName = "MyServer/MyOrg/MyDomain";
return serverName + "!!" + databasePathName;



 
  
   
   
  
 

1 comment: