public class JNDIDataSourceProvider extends Object implements ConnectionProvider
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.
ConnectionProvider| Constructor and Description |
|---|
JNDIDataSourceProvider()
Constructs a new JNDI pool.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Tells the connection provider to destroy itself.
|
Connection |
getConnection()
Returns a database connection.
|
boolean |
isPooled()
Returns true if this connection provider provides connections out
of a connection pool.
|
void |
restart()
This method should be called whenever properties have been changed so
that the changes will take effect.
|
void |
start()
Starts the connection provider.
|
public JNDIDataSourceProvider()
public boolean isPooled()
ConnectionProviderisPooled in interface ConnectionProviderpublic void start()
ConnectionProviderstart in interface ConnectionProviderpublic void restart()
ConnectionProviderrestart in interface ConnectionProviderpublic void destroy()
ConnectionProviderdestroy in interface ConnectionProviderpublic Connection getConnection() throws SQLException
ConnectionProvidergetConnection in interface ConnectionProviderSQLException - is an SQL error occured while retrieving the connection.Copyright © 2003-2008 Jive Software.