ConnectionActive

<< Click to Display Table of Contents >>

 

ConnectionActive

Boolean Indicates whether E3 has an active connection with a database. E3 normally uses two connections with this database, one for writing and another one for reading. This 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 a database is not in use, that is, no writing or reading operation was executed

When a database was just configured, that is, 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 a database connection drops, such as when the network is not available or the database was closed

When the Database object is disabled, although with a Database object deactivated, a connection can be reestablished 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 writing or reading operations, this property correctly reports the connection status with a database, as this eliminates other situations when this property could be in False.

Was this page useful?