<< Click to Display Table of Contents >>
ConnectionActive |
Indicates whether Elipse Power has an active connection with the database. Elipse Power usually uses two connections with this database, one for writing and another one for reading. The ConnectionActive property is in True if at least one of those two connections is connected and working. This property should not be used to detect connection failures, as it may be in False in several situations, such as:
•When the database is not in use (no writing or reading operation was executed)
•When the database was just configured (when a connection property of the database changes at run time all connections are closed, and they are reconnected only at the next reading or writing operation)
•When the database connection dropped (for example, a network is not available or the database was closed)
•When the DBServer object is disabled (although a connection, even with a disabled DBServer object, can be reconnected if an application requests an immediate reading or writing to the database)
This is a read-only property.
NOTE |
If an application generates database operations consistently, that is, if it is always generating new writings or readings, the ConnectionActive property correctly reports the database's connection status, as this eliminates other situations when this property could be in False. |