/** * Initialization of JMS ConnectionFactory with the user specified properties. * * @param properties Properties to be added to the initial context. * @throws JMSConnectorException Thrown when initial context name is wrong or when creating connection factory. */ public JMSServerConnectionFactory(Properties properties) throws JMSConnectorException { super(properties); isSharedSubscription = Boolean.parseBoolean(properties.getProperty(JMSConstants.PARAM_IS_SHARED_SUBSCRIPTION)); noPubSubLocal = Boolean.valueOf(properties.getProperty(JMSConstants.PARAM_PUBSUB_NO_LOCAL)); subscriptionName = properties.getProperty(JMSConstants.PARAM_DURABLE_SUB_ID); if (isSharedSubscription && subscriptionName == null) { logger.warn("Subscription name is not given. Therefore declaring a non-shared subscription"); isSharedSubscription = false; } isDurable = !StringUtils.isNullOrEmptyAfterTrim(properties.getProperty(JMSConstants.PARAM_DURABLE_SUB_ID)); String msgSelector = properties.getProperty(JMSConstants.PARAM_MSG_SELECTOR); if (null != msgSelector) { messageSelector = msgSelector; } this.destinationName = properties.getProperty(JMSConstants.PARAM_DESTINATION_NAME); }
/** * Initialization of JMS ConnectionFactory with the user specified properties. * * @param properties Properties to be added to the initial context. * @throws JMSConnectorException Thrown when initial context name is wrong or when creating connection factory. */ public JMSServerConnectionFactory(Properties properties) throws JMSConnectorException { super(properties); isSharedSubscription = Boolean.parseBoolean(properties.getProperty(JMSConstants.PARAM_IS_SHARED_SUBSCRIPTION)); noPubSubLocal = Boolean.valueOf(properties.getProperty(JMSConstants.PARAM_PUBSUB_NO_LOCAL)); subscriptionName = properties.getProperty(JMSConstants.PARAM_DURABLE_SUB_ID); if (isSharedSubscription && subscriptionName == null) { logger.warn("Subscription name is not given. Therefore declaring a non-shared subscription"); isSharedSubscription = false; } isDurable = !StringUtils.isNullOrEmptyAfterTrim(properties.getProperty(JMSConstants.PARAM_DURABLE_SUB_ID)); String msgSelector = properties.getProperty(JMSConstants.PARAM_MSG_SELECTOR); if (null != msgSelector) { messageSelector = msgSelector; } this.destinationName = properties.getProperty(JMSConstants.PARAM_DESTINATION_NAME); }
private Map<String, String> resolveInheritingDialects(Map<String, Map<String, String>> initialMappings, ClaimMappingEntry claimMappingEntry) { Map<String, String> ownClaims = initialMappings.get(claimMappingEntry.getMappingDialectURI()); if (!StringUtils.isNullOrEmptyAfterTrim(claimMappingEntry.getInherits())) { Map<String, String> inheritingMap = initialMappings.get(claimMappingEntry.getInherits()); ownClaims.putAll(inheritingMap); return ownClaims; } else { return ownClaims; } }
if (connectionFactoryType != null) { if (JMSConstants.DESTINATION_TYPE_TOPIC.equalsIgnoreCase(connectionFactoryType)) { boolean isDurable = !StringUtils.isNullOrEmptyAfterTrim( connectorConfig.get(JMSConstants.PARAM_SUB_DURABLE));
if (connectionFactoryType != null) { if (JMSConstants.DESTINATION_TYPE_TOPIC.equalsIgnoreCase(connectionFactoryType)) { boolean isDurable = !StringUtils.isNullOrEmptyAfterTrim( connectorConfig.get(JMSConstants.PARAM_SUB_DURABLE));
readOnlyList.add(claimConfigEntry.getClaimURI()); if (!StringUtils.isNullOrEmptyAfterTrim(claimConfigEntry.getValidator())) { validatingList.add(claimConfigEntry.getClaimURI()); if (!StringUtils.isNullOrEmptyAfterTrim(claimConfigEntry.getVerifier())) { verifyingList.add(claimConfigEntry.getClaimURI()); if (!StringUtils.isNullOrEmptyAfterTrim(claimConfigEntry.getTransformer())) { transformingList.add(claimConfigEntry.getClaimURI());