connectionErrorOccurred and connectionClosed are methods
from ConnectionEventListener interface
Invoked when a fatal connection error occurs,
just before an SQLException is thrown to the application
Invoked when a fatal connection error occurs,
just before an SQLException is thrown to the application
This method is automatically called when a fatal error
is detected on the base connection.
This is an implementation of java.sql.Connection which simply
delegates almost everything to an underlying physical implemention
of the same interface.
Set up the data source name, get the initial context,
and lookup in JNDI to obtain a reference of the DataSourceName
this method must be called before a getConnection (in this case
an exception is returned