public void configure() throws ConfigurationException { if (getMessageProtocol() == null) { throw new ConfigurationException(getLogPrefix() + "messageProtocol must be set"); } if (!getMessageProtocol().equalsIgnoreCase(REQUEST_REPLY) && !getMessageProtocol().equalsIgnoreCase(FIRE_AND_FORGET)) { throw new ConfigurationException( getLogPrefix() + "illegal value for messageProtocol [" + getMessageProtocol() + "], must be '" + REQUEST_REPLY + "' or '" + FIRE_AND_FORGET + "'"); } if (getMessageProtocol().equalsIgnoreCase(REQUEST_REPLY)) { setForceMessageIdAsCorrelationId(true); if (CACHE_CONSUMER.equals(getCacheMode())) { ConfigurationWarnings configWarnings = ConfigurationWarnings.getInstance(); configWarnings.add( log, "attribute [cacheMode] already has a default value [" + CACHE_CONSUMER + "]"); } setCacheMode("CACHE_CONSUMER"); } else { setUseReplyTo(false); } super.configure(); }
public void setCloseStreamOnExit(boolean b) { ConfigurationWarnings.getInstance() .add("attribute 'closeStreamOnExit' has been renamed into 'closeInputstreamOnExit'"); setCloseInputstreamOnExit(b); }