Instantiating a BO on the Data Portal

Instantiating a BO on the Data Portal

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


Wbmstrmjb posted on Tuesday, October 07, 2008

If you have a BO that is always instantiated on the Data Portal (within a Fetch, Insert, Update, etc call of another BO), should you mark that internal BO's portal calls with [RunLocal()] because "local" is the app server and you are already there?

Thanks,

Mike

RockfordLhotka replied on Tuesday, October 07, 2008

No, you don't need to use RunLocal in that case.

RunLocal does one very simple thing, it causes the data portal to invoke the DataPortal_XYZ method without going across the network.

If the current machine is not configured to use a remote data portal (and your server would be configured in local mode by definition) then RunLocal would have no impact at all.

Wbmstrmjb replied on Wednesday, October 08, 2008

Thank you for the clarification.  I somehow figured that instantiating a BO on the remote server would try to also remote (but to where) and cause either a performance drop or an error.

Thanks,

Mike

Copyright (c) Marimer LLC