|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.database.JNDIDataSourceProvider
public class JNDIDataSourceProvider
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 other applications.
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 Summary | |
---|---|
JNDIDataSourceProvider()
Constructs a new JNDI pool. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JNDIDataSourceProvider()
Method Detail |
---|
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()
ConnectionProvider
getConnection
in interface ConnectionProvider
|
Openfire 3.5.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |