WebSphere:*,type=DataSourceCfgHelper
MBean DataSourceCfgHelper
Management interface for helper class that performs several admin functions for the JDBC DataSource.
Operation Summary | |
---|---|
java.util.List | getPropertiesForDataSource( Creates a list of all settable properties available for a DataSource. |
void | reload() Reloads resources. |
java.lang.String | testConnectionToDataSource( Tests getting a connection to the specified DataSource and returns a message suitable for display to the user containing any warnings and errors. |
int | testConnection( Tests getting a connection to the specified resource and returns a 0 for success, 1 for warnings and throws exceptions for failures. |
java.lang.String | testConnectionToDataSource( Tests getting a connection to the specified DataSource and returns a message suitable for display to the user containing any warnings and errors. |
Operation Detail |
---|
public java.util.List getPropertiesForDataSource(java.lang.String dsClassName,
java.lang.String providerLibPath
)
dsClassName
-
the class name of the JDBC provider data source class to retrieve the properties forproviderLibPath
-
the path to the folder containing the needed JDBC provider classespublic void reload()
public java.lang.String testConnectionToDataSource(java.lang.String dsClassName,
java.lang.String user,
java.lang.String password,
java.util.Properties dataSourceProps,
java.lang.String providerLibPath,
java.lang.String language,
java.lang.String country
)
dsClassName
-
the class name of the JDBC provider data source class to retrieve the properties foruser
-
user name for connecting to the database.password
-
password for connecting to the database.dataSourceProps
-
list of the properties you wish to set when testing the data sourceproviderLibPath
-
the path to the folder containing the needed JDBC provider classeslanguage
-
the langauge of the locale to use for any warnings returned by the test connectioncountry
-
the country of the locale to use for any warnings returned by the test connectionpublic int testConnection(java.lang.String resURI
)
resURI
-
The resource URI. This will be use to retrieve the resource properties from WCCM.public java.lang.String testConnectionToDataSource(java.lang.String dsClassName,
java.lang.String user,
java.lang.String password,
java.util.Properties dataSourceProps,
java.lang.String providerLibPath,
java.util.Locale locale
)
dsClassName
-
the class name of the JDBC provider data source class to retrieve the properties foruser
-
user name for connecting to the database.password
-
password for connecting to the database.dataSourceProps
-
list of the properties you wish to set when testing the data sourceproviderLibPath
-
the path to the folder containing the needed JDBC provider classeslocale
-
the locale to use for any warnings returned by the test connection