Marking Bad Connections

The DataSource implementation in the GlassFish Server provides
a markConnectionAsBad method. A marked bad
connection is removed from its connection pool when it is closed.
The method signature is as follows: