Package javax.resource.spi
Interface ValidatingManagedConnectionFactory
-
public interface ValidatingManagedConnectionFactoryThis interface is implemented by aManagedConnectionFactoryinstance that supports the ability to validateManagedConnectionobjects.This may be used by the application server to prune invalid
ManagedConnectionobjects from its connection pool.The application server may use this functionality to test the validity of a
ManagedConnectionby passing in aSetof size one( with theManagedConnectionthat has to be tested for validity as the only member of theSet.- Version:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.SetgetInvalidConnections(java.util.Set connectionSet)This method returns a set of invalidManagedConnectionobjects chosen from a specified set ofManagedConnectionobjects.
-
-
-
Method Detail
-
getInvalidConnections
java.util.Set getInvalidConnections(java.util.Set connectionSet) throws ResourceExceptionThis method returns a set of invalidManagedConnectionobjects chosen from a specified set ofManagedConnectionobjects.- Parameters:
connectionSet- a set ofManagedConnectionobjects that need to be validated.- Returns:
- a set of invalid
ManagedConnectionobjects. - Throws:
ResourceException- generic exception.
-
-