super.validate();
if (settings.getConnectionFactory() == null)
{
// JMS connection factory of message destinations with JMS Adapters must be specified.
ConfigurationException ce = new ConfigurationException();
ce.setMessage(MISSING_CONNECTION_FACTORY);
throw ce;
}
if (settings.getDestinationJNDIName() == null)
{
// JNDI names for message destinations with JMS Adapters must be specified.
ConfigurationException ce = new ConfigurationException();
ce.setMessage(JMSConfigConstants.MISSING_DESTINATION_JNDI_NAME);
throw ce;
}
if (settings.getMessageType() == null)
{
// Unsupported JMS Message Type ''{0}''. Valid values are javax.jms.TextMessage and javax.jms.ObjectMessage.
ConfigurationException ce = new ConfigurationException();
ce.setMessage(INVALID_JMS_MESSAGE_TYPE, new Object[] {null});
throw ce;
}
}