Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Failover Partner
Message
De
01/12/2009 09:10:48
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
01/12/2009 02:33:01
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01436563
Message ID:
01437045
Vues:
55
This message has been marked as a message which has helped to the initial question of the thread.
>> What exactly does the fail over do?
>
>Hello,
>
>in case the main database server is not reachable, the connection switches to the second databbase server (failover partner).
>The databases on both machines are synchronized. The second machine is a hot standby, so it is not really used, when the main server is up and running.
>
>Regards
>Thomas

Ok, I did a quick search and it appears the failover function is supported by dot net so I would recommend you take a look at this method in the mmDatabaseManager class. You can override that and add support so the failover is added to the connection string:

public virtual string GetConnectionString(string databaseSetKey, string databaseKey)

This method just retrieves the connection info from the configuration file and builds a standard Dot Net connections string. You could pretty easily add what you needed to support the failover function I would think.

Alternatively you could more easily override an AbusinessObject method to alter the connection string once it is retrieved and set on the dao but before it is used. This would probably mean using a setting somewhere that gave you what you needed for the failover connections string info. I would have to look further to figure out the best place. If you need help with that, let me know.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform