New Posts New Posts RSS Feed: Dynamic DataSourceKeyResolver only works some of the time
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Dynamic DataSourceKeyResolver only works some of the time

 Post Reply Post Reply
Author
Customer View Drop Down
Senior Member
Senior Member
Avatar
User Submitted Questions to Support

Joined: 30-May-2007
Location: United States
Posts: 260
Post Options Post Options   Quote Customer Quote  Post ReplyReply Direct Link To This Post Topic: Dynamic DataSourceKeyResolver only works some of the time
    Posted: 16-Jul-2007 at 12:03pm
How come the Dynamic DataSourceKeyResolver only works some of the time?
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 16-Jul-2007 at 12:06pm
Only the first call to DataSourceKeyResolver actually calls any custom code.  After that, the cached result is used. You can organize your code to make use of this fact.  The key is to make sure that the connection string is retrieved on the first call to the DataSourceKeyResolver.
Back to Top
vkh75 View Drop Down
Newbie
Newbie


Joined: 15-Jun-2007
Location: Ukraine
Posts: 14
Post Options Post Options   Quote vkh75 Quote  Post ReplyReply Direct Link To This Post Posted: 05-Jan-2008 at 2:22pm
Originally posted by IdeaBlade

Only the first call to DataSourceKeyResolver actually calls any custom code.  After that, the cached result is used.
 
Is there any way to clear this cached result other than restarting an application?
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 08-Jan-2008 at 2:13pm
There is no way to clear the cached result.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down