public class MWSLibrary extends Object
MWSLibrary is initialized by calling into init()
method. If API has been already
initialized this call does nothing. Before initializing the client must set some configuration system
properties:
MWS Database configuration. My webMethods Server component needs to access MWS database where all necessary configuration is stored. There are two ways to configure this connectivity:
SYSTEM_PROP_MWS_INSTALL_DIR
property to point to the
the installation folder for WM products, if MWS is present there it will read database connectivity configuration
directly from MWSSYSTEM_PROP_JDBC_POOL_ALIAS
the name of the alias set for this JDBC pool. Then MWSLibrary obtain connections from this pool instead
of creating and managing its own internal pool
SYSTEM_PROP_DB_DRIVER
, #SYSTEM_MWS_DB_URL
,
#SYSTEM_MWS_DB_USER
, #SYSTEM_MWS_DB_PASSWORD
Any audit logging done by directory component is done to #LOG_CATEGORY_NAME
Log4J category logger. It is up to container using this API to provide logging configuration for this category
Modifier and Type | Class and Description |
---|---|
static class |
MWSLibrary.ClusterXmlHandler |
static class |
MWSLibrary.DbXmlHandler |
Modifier and Type | Field and Description |
---|---|
static String |
SYSTEM_PROP_CDS_JOURNAL_LOGGER
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_CDS_LOG_PROPERTIES_FILE
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_CLEANUP_PERIOD
Deprecated.
No longer used for 10.1 or later
|
static int |
SYSTEM_PROP_CLEANUP_PERIOD_DEFAULT
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_DB_DRIVER
System property which identifies database driver.
|
static String |
SYSTEM_PROP_DB_PASSWORD
System property which identifies database connection password.
|
static String |
SYSTEM_PROP_DB_URL
System property which identifies connection url.
|
static String |
SYSTEM_PROP_DB_USER
System property which identifies database connection user.
|
static String |
SYSTEM_PROP_IDLE_TIMEOUT
Deprecated.
No longer used for 10.1 or later
|
static int |
SYSTEM_PROP_IDLE_TIMEOUT_DEFAULT
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_JDBC_POOL_ALIAS
System property which identifies the name of JDBC pool alias which should be used to connect to MWS database
|
static String |
SYSTEM_PROP_MAX_CONNECTIONS
Deprecated.
No longer used for 10.1 or later
|
static int |
SYSTEM_PROP_MAX_CONNECTIONS_DEFAULT
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_MAX_WAITTIME
Deprecated.
No longer used for 10.1 or later
|
static int |
SYSTEM_PROP_MAX_WAITTIME_DEFAULT
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_MIN_CONNECTIONS
Deprecated.
No longer used for 10.1 or later
|
static int |
SYSTEM_PROP_MIN_CONNECTIONS_DEFAULT
Deprecated.
No longer used for 10.1 or later
|
static String |
SYSTEM_PROP_MWS_INSTALL_DIR
System property which value identifies root path to installed WM products, e.g.
|
Modifier and Type | Method and Description |
---|---|
protected static SAXParser |
createSAXParser(boolean namespaceAware) |
static void |
init()
Initializes MWSLibrary.
|
static boolean |
isInitialized()
Returns true if MWSLibrary is already initialized
|
static void |
shutdown()
Shuts down previously initialized MWSLibrary.
|
public static final String SYSTEM_PROP_MWS_INSTALL_DIR
public static final String SYSTEM_PROP_JDBC_POOL_ALIAS
public static final String SYSTEM_PROP_DB_URL
public static final String SYSTEM_PROP_DB_DRIVER
public static final String SYSTEM_PROP_DB_USER
public static final String SYSTEM_PROP_DB_PASSWORD
@Deprecated public static final String SYSTEM_PROP_MIN_CONNECTIONS
@Deprecated public static final int SYSTEM_PROP_MIN_CONNECTIONS_DEFAULT
@Deprecated public static final String SYSTEM_PROP_MAX_CONNECTIONS
@Deprecated public static final int SYSTEM_PROP_MAX_CONNECTIONS_DEFAULT
@Deprecated public static final String SYSTEM_PROP_IDLE_TIMEOUT
@Deprecated public static final int SYSTEM_PROP_IDLE_TIMEOUT_DEFAULT
@Deprecated public static final String SYSTEM_PROP_CLEANUP_PERIOD
@Deprecated public static final int SYSTEM_PROP_CLEANUP_PERIOD_DEFAULT
@Deprecated public static final String SYSTEM_PROP_MAX_WAITTIME
@Deprecated public static final int SYSTEM_PROP_MAX_WAITTIME_DEFAULT
@Deprecated public static final String SYSTEM_PROP_CDS_JOURNAL_LOGGER
@Deprecated public static final String SYSTEM_PROP_CDS_LOG_PROPERTIES_FILE
public static void init() throws Exception
Exception
- if there was an exception during MWSLibrary initializationpublic static void shutdown()
public static boolean isInitialized()
protected static SAXParser createSAXParser(boolean namespaceAware) throws ParserConfigurationException, SAXException