Multiple configurations for DataPortal ?

Multiple configurations for DataPortal ?

Old forum URL: forums.lhotka.net/forums/t/7758.aspx


vsavalia posted on Friday, October 09, 2009

Hi,

 

We have a portal framework that has been developed using CSLA in which the DataPortal has been configured using the App.config file of the portal.  The portal is basically a shell that can contain multiple portlets, each of which is its own standalone application.  We then created one portlet that also uses CSLA, in which it’s DataPortal has been configured in it’s App.config, differently from the portal’s DataPortal.  The portlet runs fine by itself, but not when it is run within the portal.  The problem is at runtime, when a Fetch call is made to the Business Object used in the portlet, the Business Object uses the portal’s configuration of the DataPortal and not the portlet’s config.  The portal and portlet are in two separate assemblies (portal is an exe and the portlet is a dll).  Is there a way to specify different DataPortal configurations for different assemblies? 

 

We basically want to specify different DataPortal configurations for the portal and for each portlet, so if we have 4 portlets, we would want 5 configurations (4 portlets + 1 portal).  The reason for this is to completely separate the coding/configuration for each component since the portal and each portlet will be managed by different groups.  Is this possible?

 

Thanks!

RockfordLhotka replied on Friday, October 09, 2009

http://www.lhotka.net/cslanet/faq/DataPortalFaq.ashx

Copyright (c) Marimer LLC