New Posts New Posts RSS Feed: Multi Tenant Deployment
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Multi Tenant Deployment

 Post Reply Post Reply
Author
francois View Drop Down
Newbie
Newbie
Avatar

Joined: 12-Feb-2009
Posts: 12
Post Options Post Options   Quote francois Quote  Post ReplyReply Direct Link To This Post Topic: Multi Tenant Deployment
    Posted: 04-Feb-2010 at 1:38pm
Hi,
 
I have developed a multi tenant application. For each tenant I have to create a new EntityServer_XXXX.svc for the datasource extentions to work.
 
How do I manually create the required services without having these *.svc files on IIS?
 
The documentation say that EntityService automatically creates EntityServers for each tenant? How do I avoid creating the .svc files.
 
I'm sure im missing something...
 
Thank you
Back to Top
stephenmcd1 View Drop Down
DevForce MVP
DevForce MVP


Joined: 27-Oct-2009
Location: Los Angeles, CA
Posts: 166
Post Options Post Options   Quote stephenmcd1 Quote  Post ReplyReply Direct Link To This Post Posted: 04-Feb-2010 at 2:09pm
We have a similar situation where we have dynamic datasource extensions so can't possibly create all the necessary *.svc files except at runtime.
 
I ended up implementing a simple VirtualPathProvider that checks for requests in the form of ~/EntityServer_XYZ.svc and dynamically serves up the necessary svc file.
 
This was the best solution I could come up.  I'd be interested to hear if there is a better way.
 
-Stephen
Back to Top
francois View Drop Down
Newbie
Newbie
Avatar

Joined: 12-Feb-2009
Posts: 12
Post Options Post Options   Quote francois Quote  Post ReplyReply Direct Link To This Post Posted: 07-Feb-2010 at 10:24am

mmm, it is an alternative but I'm sure the development team must have had another solution in mind for this. Would be great to hear the right way to do this.

We cannot be the first ones implementing multi-tenant scenarios...
Back to Top
kimj View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 09-May-2007
Posts: 1391
Post Options Post Options   Quote kimj Quote  Post ReplyReply Direct Link To This Post Posted: 08-Feb-2010 at 8:46am
The need for .svc files for every service is a requirement when hosting WCF services under IIS, and is not a DevForce-specific requirement.  If a BOS is hosted as a Windows Service (ServerService.exe) these files are not needed.  The VirtualPathProvider is the only alternative in .NET 3.5.  (In .NET 4.0 "file-less" activation is now supported.)  DevForce 2009 does not ship with a VirtualPathProvider, but it's fortunately not too difficult to write one (and we can provide a sample). 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down