public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring CAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue(); if (this.capJndi == null) { throw new InvalidConfigurationException("CAP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } }
public void raVerifyConfiguration(ConfigProperties configProperties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring ISUPA: " + this.raContext.getEntityName()); } this.isupJndi = (String) configProperties.getProperty(CONF_ISUP_JNDI).getValue(); if (this.isupJndi == null) { throw new InvalidConfigurationException("ISUP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } }
public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring CAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue(); if (this.capJndi == null) { throw new InvalidConfigurationException("CAP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } }
binidType = BindType.getBindType((String) properties.getProperty("bindType").getValue()); } catch (Throwable e) { throw new InvalidConfigurationException(e.getMessage(), e); throw new InvalidConfigurationException("Address Range cannot be null"); } else if (host == null) { throw new InvalidConfigurationException("Host (of SMSC) cannot be null"); } else if (password == null) { throw new InvalidConfigurationException("Password cannot be null"); } else if (systemId == null) { throw new InvalidConfigurationException("System ID cannot be null"); } else if (systemType == null) { throw new InvalidConfigurationException("System Type cannot be null"); } else if (binidType == null) { throw new InvalidConfigurationException("Bind Type cannot be null");
} catch (Exception e) { tracer.severe("failed to load http client factory class", e); throw new InvalidConfigurationException("failed to load http client factory class", e); Integer j = (Integer) properties.getProperty(CFG_PROPERTY_MAX_CONNECTIONS_TOTAL).getValue(); if (j < 1) { throw new InvalidConfigurationException(CFG_PROPERTY_MAX_CONNECTIONS_TOTAL + " must be > 0"); throw new InvalidConfigurationException(CFG_PROPERTY_DEFAULT_MAX_CONNECTIONS_PER_ROUTE + " must be > 0"); throw new InvalidConfigurationException(CFG_PROPERTY_DEFAULT_CONNECT_TIMEOUT + " must be > 0"); throw new InvalidConfigurationException(CFG_PROPERTY_DEFAULT_SOCKET_TIMEOUT + " must be > 0"); } catch (Exception e) { tracer.severe("failure in config validation", e); throw new InvalidConfigurationException(e.getMessage());
public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring MAPRA: " + this.resourceAdaptorContext.getEntityName()); } this.mapJndi = (String) properties.getProperty(CONF_MAP_JNDI).getValue(); if (this.mapJndi == null) { throw new InvalidConfigurationException("MAP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } if (tracer.isInfoEnabled()) { tracer.info("MAP Resource Adaptor configuration verified."); } }
public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring TCAP RA: " + this.resourceAdaptorContext.getEntityName()); } this.tcapJndi = (String) properties.getProperty(CONF_TCAP_JNDI).getValue(); if (this.tcapJndi == null) { throw new InvalidConfigurationException("TCAP JNDI lookup name cannot be null"); } } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } if (tracer.isInfoEnabled()) { tracer.info("TCAP Resource Adaptor configuration verified."); } }
public void raVerifyConfiguration(ConfigProperties properties) throws InvalidConfigurationException { try { if (tracer.isInfoEnabled()) { tracer.info("Verifying configuring MAPRA: " + this.resourceAdaptorContext.getEntityName()); } this.mapJndi = (String) properties.getProperty(CONF_MAP_JNDI).getValue(); if (this.mapJndi == null) { throw new InvalidConfigurationException("MAP JNDI lookup name cannot be null"); } ss7RAExtInterface.onRaVerifyConfiguration(properties); } catch (Exception e) { throw new InvalidConfigurationException("Failed to test configuration options!", e); } if (tracer.isInfoEnabled()) { tracer.info("MAP Resource Adaptor configuration verified."); } }
.getProperties()) { if (entityProperty.getValue() == null) { throw new InvalidConfigurationException("the property " + entityProperty.getName() + " has null value");