An implementation of ConnectionProvider that utilizes a JDBC 2.0 DataSource
made available via JNDI. This is useful for application servers where a pooled
data connection is already provided so Jive can share the pool with the
The JNDI location of the DataSource stored as the Jive property
database.JNDIProvider.name. This can be overridden by setting
the provider's name property if required.
Returns true if this connection provider provides connections out
of a connection pool. Implementing and using connection providers that
are pooled is strongly recommended, as they greatly increase the speed
Tells the connection provider to destroy itself. For many connection
providers, this will essentially result in a no-op. However,
connection provider users should always call this method when changing
from one connection provider to another to ensure that there are no
dangling database connections.
Returns a database connection. When a Jive component is done with a
connection, it will call the close method of that connection. Therefore,
connection pools with special release methods are not directly
supported by the connection provider infrastructure. Instead, connections
from those pools should be wrapped such that calling the close method
on the wrapper class will release the connection from the pool.