此内容没有您所选择的语言版本。
4.4. Define a Connection
Extend the
org.teiid.resource.spi.BasicConnection
class, and provide an implementation based on your access of the Connection object in your translator. If your connection is stateful, override the isAlive()
and cleanup()
methods with suitable implementations. These methods are called to check if a connection is stale and needs flushing from the connection pool by the application server.