public class ConnectorConfigurationParserServiceImpl extends ConnectorService
ConnectorConstants.PoolTypeResourceConstants.TriState_logger, _registry, _runtimeACCESS_ALL_RARS, ADMINISTERED_OBJECT_FACTORY, AIRA, AO, AOR, AORA, CAUTION_MESSAGE, CCP, CLASSLOADING_POLICY_DERIVED_ACCESS, CLASSLOADING_POLICY_GLOBAL_ACCESS, CONNECTOR_MESSAGE_BEAN_CLIENT_FACTORY, CONNECTOR_MODULE, CR, DD_PREFIX, DEFAULT_JMS_ADAPTER, DEFAULT_RESOURCE_ADAPTER_SHUTDOWN_TIMEOUT, DYNAMIC_RECONFIGURATION_FLAG, DYNAMIC_RECONFIGURATION_PROXY_CALL, EXPLODED_EMBEDDED_RAR_EXTENSION, HIDDEN_CLI_NAME_VALUE_PAIR_DELIMITER, INSTALL_ROOT, JAVA_BEAN_FACTORY_CLASS, JAVA_SQL_DRIVER, JAVAX_SQL_CONNECTION_POOL_DATASOURCE, JAVAX_SQL_DATASOURCE, JAVAX_SQL_XA_DATASOURCE, JAXR_RA_NAME, JDBC, JDBCCONNECTIONPOOLDATASOURCE_RA_NAME, JDBCDATASOURCE_RA_NAME, JDBCDRIVER_RA_NAME, jdbcSystemRarNames, JDBCXA_RA_NAME, JMS_POOL_MAXSIZE, JMS_POOL_MINSIZE, JNDI_SUFFIX_PROPERTY, JNDI_SUFFIX_VALUES, LOCAL_TRANSACTION_INT, LOCAL_TRANSACTION_TX_SUPPORT_STRING, MCF, MONITORING_CONNECTION_FACTORIES, MONITORING_CONNECTOR_SERVICE, MONITORING_CONNECTOR_SERVICE_MODULE_NAME, MONITORING_JMS_SERVICE, MONITORING_JMS_SERVICE_MODULE_NAME, MONITORING_SEPARATOR, MONITORING_WORK_MANAGEMENT, MSL, NO_TRANSACTION_INT, NO_TRANSACTION_TX_SUPPORT_STRING, NON_TX_JNDI_SUFFIX, PM_JNDI_SUFFIX, POOLNAME_APPENDER, POOLS_JNDINAME_PREFIX, PRIMITIVES_AND_STRING_FACTORY_CLASS, PROPERTIES_FACTORY, RA, RAR, RAR_EXTENSION, RAR_VISIBILITY, RAR_VISIBILITY_GLOBAL_ACCESS, REQUIRED_RARS_FOR_APP_PREFIX, RESERVE_PREFIX, RESOURCE_JNDINAME_PREFIX, RESOURCENAME_APPENDER, SEC, SECURITYMAPMETACHAR, SUN_RA_POOL, systemRarNames, systemRarsAllowingPoolCreation, sysThrowExcp, THROW_TRANSACTED_EXCEPTIONS, THROW_TRANSACTED_EXCEPTIONS_PROP, UNDEFINED_TRANSACTION_INT, URL_OBJECTS_FACTORY, USERGROUPDISTINGUISHER, XA_TRANSACTION_INT, XA_TRANSACTION_TX_SUPPORT_STRINGADMINISTERED_OBJECT_DEFINITION_JNDINAME_PREFIX, APP_META_DATA_RESOURCES, APP_SCOPED_RESOURCES_JNDI_NAMES, APP_SCOPED_RESOURCES_MAP, APP_SCOPED_RESOURCES_RA_NAMES, CONNECTION_FACTORY_DEFINITION_JNDINAME_PREFIX, CONNECTOR_RESOURCES, DATASOURCE_DEFINITION_JNDINAME_PREFIX, EMBEDDEDRAR_NAME_DELIMITER, EXT_JNDI_RES_TYPE, GF_RESOURCES_LOCATION, GF_RESOURCES_MODULE, GF_RESOURCES_MODULE_EAR, JAVA_APP_SCOPE_PREFIX, JAVA_COMP_ENV_SCOPE_PREFIX, JAVA_COMP_SCOPE_PREFIX, JAVA_GLOBAL_SCOPE_PREFIX, JAVA_MODULE_SCOPE_PREFIX, JAVA_SCOPE_PREFIX, JMS_CONNECTION_FACTORY_DEFINITION_JNDINAME_PREFIX, JMS_DESTINATION_DEFINITION_JNDINAME_PREFIX, JMS_MESSAGE_LISTENER, JMS_QUEUE, JMS_QUEUE_CONNECTION_FACTORY, JMS_TOPIC, JMS_TOPIC_CONNECTION_FACTORY, MAILSESSION_DEFINITION_JNDINAME_PREFIX, NON_CONNECTOR_RESOURCES, RES_TYPE_AOR, RES_TYPE_CCP, RES_TYPE_CR, RES_TYPE_CUSTOM, RES_TYPE_CWSM, RES_TYPE_EXTERNAL_JNDI, RES_TYPE_JCP, RES_TYPE_JDBC, RES_TYPE_MAIL, RES_TYPE_RAC| Constructor and Description |
|---|
ConnectorConfigurationParserServiceImpl()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getActivationSpecClass(String rarName,
String messageListenerType)
Return the ActivationSpecClass name for given rar and messageListenerType
|
String[] |
getAdminObjectClassNames(String rarName,
String intfName)
gets the adminObjectClassNames pertaining to a rar & a specific
adminObjectInterfaceName
|
Properties |
getAdminObjectConfigProps(String rarName,
String adminObjectIntf)
Retrieves the admin object javabean properties with default values.
|
Properties |
getAdminObjectConfigProps(String rarName,
String adminObjectIntf,
String adminObjectClass)
Retrieves the admin object javabean properties with default values.
|
String[] |
getAdminObjectInterfaceNames(String rarName)
Obtains all the Connection definition names of a rar
|
String[] |
getConnectionDefinitionNames(String rarName)
Obtains all the Connection definition names of a rar
|
Properties |
getConnectorConfigJavaBeans(String rarName,
String connectionDefName,
String type)
Retrieves the XXX javabean properties with default values.
|
String |
getFileContent(File file)
Obtain the content of server.policy file
|
Properties |
getMCFConfigProps(String rarName,
String connectionDefName)
Retrieves the MCF javabean properties with default values.
|
Properties |
getMessageListenerConfigProps(String rarName,
String messageListenerType)
Parses the ra.xml for the ActivationSpec javabean
properties.
|
Properties |
getMessageListenerConfigPropTypes(String rarName,
String messageListenerType)
Returns the Properties object consisting of propertyname as the
key and datatype as the value.
|
String[] |
getMessageListenerTypes(String rarName) |
Properties |
getResourceAdapterConfigProps(String rarName)
Retrieves the Resource adapter javabean properties with default values.
|
String |
getSecurityPermissionSpec(String moduleName)
Obtains the Permission string that needs to be added to the
to the security policy files.
|
boolean |
hasAdminObject(String rarName,
String intfName,
String className)
checks whether the specified intfName, className has presence in
admin objects of the RAR
|
checkAccessibility, checkAndLoadPool, createActiveResourceAdapterForEmbeddedRar, getConnectorDescriptor, getDefaultPoolName, getDefaultResourceName, getResourcesUtil, ifSystemRarLoad, loadDeferredResourceAdapter, loadDeferredResources, loadResourcesAndItsRar, switchOnMatchingpublic ConnectorConfigurationParserServiceImpl()
public String getSecurityPermissionSpec(String moduleName) throws ConnectorRuntimeException
moduleName - rar module NameConnectorRuntimeException - If rar.xml parsing fails.public String getFileContent(File file)
file - File server.policy filepublic String[] getConnectionDefinitionNames(String rarName) throws ConnectorRuntimeException
rarName - rar moduleNameConnectorRuntimeExceptionpublic Properties getResourceAdapterConfigProps(String rarName) throws ConnectorRuntimeException
rarName - rar module nameConnectorRuntimeException - if property retrieval fails.public Properties getMCFConfigProps(String rarName, String connectionDefName) throws ConnectorRuntimeException
rarName - rar module nameConnectorRuntimeException - if property retrieval fails.public Properties getAdminObjectConfigProps(String rarName, String adminObjectIntf) throws ConnectorRuntimeException
rarName - rar module nameConnectorRuntimeException - if property retrieval fails.public Properties getAdminObjectConfigProps(String rarName, String adminObjectIntf, String adminObjectClass) throws ConnectorRuntimeException
rarName - rar module nameadminObjectIntf - admin object interfaceadminObjectClass - admin object classConnectorRuntimeException - if property retrieval fails.public Properties getConnectorConfigJavaBeans(String rarName, String connectionDefName, String type) throws ConnectorRuntimeException
rarName - rar module nameConnectorRuntimeException - if property retrieval fails.public String getActivationSpecClass(String rarName, String messageListenerType) throws ConnectorRuntimeException
moduleDir - The directory where rar is exploded.messageListenerType - MessageListener typeConnectorRuntimeException - If moduleDir is null.
If corresponding rar is not deployed.public String[] getMessageListenerTypes(String rarName) throws ConnectorRuntimeException
ConnectorRuntimeExceptionpublic Properties getMessageListenerConfigProps(String rarName, String messageListenerType) throws ConnectorRuntimeException
rarName - name of the rar module.messageListenerType - message listener type.It is uniqie
across all ConnectorRuntimeException - if either of the parameters are null.
If corresponding rar is not deployed i.e moduleDir is invalid.
If messagelistener type is not found in ra.xmlpublic Properties getMessageListenerConfigPropTypes(String rarName, String messageListenerType) throws ConnectorRuntimeException
rarName - name of the rar module.messageListenerType - message listener type.It is uniqie
across all ConnectorRuntimeException - if either of the parameters are null.
If corresponding rar is not deployed i.e moduleDir is invalid.
If messagelistener type is not found in ra.xmlpublic String[] getAdminObjectInterfaceNames(String rarName) throws ConnectorRuntimeException
rarName - rar moduleNameConnectorRuntimeExceptionpublic String[] getAdminObjectClassNames(String rarName, String intfName) throws ConnectorRuntimeException
rarName - resource-adapter nameintfName - admin-object-interface nameConnectorRuntimeException - if parsing failspublic boolean hasAdminObject(String rarName, String intfName, String className) throws ConnectorRuntimeException
rarName - resource-adapter nameintfName - admin object interface nameclassName - admin object class nameConnectorRuntimeException - when unable to determine the presenceCopyright © 2017. All rights reserved.