momMsg.setProperty(name, new Integer(ConversionHelper.toInt(value)));
} catch (MessageValueException mE) {
throw new MessageFormatException(mE.getMessage());
}
} else {
throw new JMSException("Property names with prefix 'JMSX' are reserved.");
}
} else if (name.startsWith("JMS_JORAM")) {
if (propertiesRO)
throw new MessageNotWriteableException("Can't set property as the message properties are READ-ONLY.");
momMsg.setProperty(name, value);
} else if (name.startsWith("JMS")) {
throw new JMSException("Property names with prefix 'JMS' are reserved.");
} else if (name.equalsIgnoreCase("NULL") ||
name.equalsIgnoreCase("TRUE") ||
name.equalsIgnoreCase("FALSE") ||
name.equalsIgnoreCase("NOT") ||
name.equalsIgnoreCase("AND") ||
name.equalsIgnoreCase("OR") ||
name.equalsIgnoreCase("BETWEEN") ||
name.equalsIgnoreCase("LIKE") ||
name.equalsIgnoreCase("IN") ||
name.equalsIgnoreCase("IS") ||
name.equalsIgnoreCase("ESCAPE")) {
throw new JMSException("Invalid property name cannot use SQL terminal: " + name);
} else {
if (propertiesRO)
throw new MessageNotWriteableException("Can't set property as the message properties are READ-ONLY.");
momMsg.setProperty(name, value);