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()
ConnectionProvider
isPooled
in interface ConnectionProvider
public void start()
ConnectionProvider
start
in interface ConnectionProvider
public void restart()
ConnectionProvider
restart
in interface ConnectionProvider
public void destroy()
ConnectionProvider
destroy
in interface ConnectionProvider
public Connection getConnection() throws SQLException
ConnectionProvider
getConnection
in interface ConnectionProvider
SQLException
- is an SQL error occured while retrieving the connection.Copyright © 2003-2008 Jive Software.