Search in sources :

Example 46 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class ReceiverBase method setInProcessStorage.

/**
 * Sets the inProcessStorage.
 * @param inProcessStorage The inProcessStorage to set
 * @deprecated
 */
protected void setInProcessStorage(ITransactionalStorage inProcessStorage) {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = getLogPrefix() + "In-Process Storage is not used anymore. Please remove from configuration.";
    configWarnings.add(log, msg);
    // We do not use an in-process storage anymore, but we temporarily
    // store it if it's set by the configuration.
    // During configure, we check if we need to use the in-process storage
    // as error-storage.
    this.tmpInProcessStorage = inProcessStorage;
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 47 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class ReceiverBase method setTransacted.

/**
 * Controls the use of XA-transactions.
 */
public void setTransacted(boolean transacted) {
    // this.transacted = transacted;
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    if (transacted) {
        String msg = getLogPrefix() + "implementing setting of transacted=true as transactionAttribute=Required";
        configWarnings.add(log, msg);
        setTransactionAttributeNum(TransactionDefinition.PROPAGATION_REQUIRED);
    } else {
        String msg = getLogPrefix() + "implementing setting of transacted=false as transactionAttribute=Supports";
        configWarnings.add(log, msg);
        setTransactionAttributeNum(TransactionDefinition.PROPAGATION_SUPPORTS);
    }
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 48 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class PasswordHashPipe method configure.

public void configure() throws ConfigurationException {
    super.configure();
    if (StringUtils.isNotEmpty(getHashSessionKey())) {
        if (findForward(FAILURE_FORWARD_NAME) == null) {
            ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
            configWarnings.add(log, getLogPrefix(null) + "has a hashSessionKey attribute but forward failure is not configured");
        }
    }
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 49 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class PostboxSenderPipe method configure.

public void configure() throws ConfigurationException {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = getLogPrefix(null) + "The class [" + getClass().getName() + "] has been deprecated. Please change to [" + getClass().getSuperclass().getName() + "]";
    configWarnings.add(log, msg);
    super.configure();
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Example 50 with ConfigurationWarnings

use of nl.nn.adapterframework.configuration.ConfigurationWarnings in project iaf by ibissource.

the class XPathPipe method configure.

public void configure() throws ConfigurationException {
    ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance();
    String msg = getLogPrefix(null) + "The class [" + getClass().getName() + "] has been deprecated. Please change to [" + getClass().getSuperclass().getName() + "]";
    configWarnings.add(log, msg);
    super.configure();
}
Also used : ConfigurationWarnings(nl.nn.adapterframework.configuration.ConfigurationWarnings)

Aggregations

ConfigurationWarnings (nl.nn.adapterframework.configuration.ConfigurationWarnings)58 ConfigurationException (nl.nn.adapterframework.configuration.ConfigurationException)16 TransformerConfigurationException (javax.xml.transform.TransformerConfigurationException)5 ArrayList (java.util.ArrayList)4 ITransactionalStorage (nl.nn.adapterframework.core.ITransactionalStorage)3 PipeForward (nl.nn.adapterframework.core.PipeForward)3 ReceiverBase (nl.nn.adapterframework.receivers.ReceiverBase)3 URL (java.net.URL)2 BaseConfigurationWarnings (nl.nn.adapterframework.configuration.BaseConfigurationWarnings)2 Configuration (nl.nn.adapterframework.configuration.Configuration)2 HasPhysicalDestination (nl.nn.adapterframework.core.HasPhysicalDestination)2 ISender (nl.nn.adapterframework.core.ISender)2 EsbSoapWrapperPipe (nl.nn.adapterframework.extensions.esb.EsbSoapWrapperPipe)2 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 Connection (java.sql.Connection)1 DatabaseMetaData (java.sql.DatabaseMetaData)1 SQLException (java.sql.SQLException)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1