Beispiel #1
0
  public Message putObjectProperty(final SimpleString key, final Object value)
      throws HornetQPropertyConversionException {
    TypedProperties.setObjectProperty(key, value, properties);
    bufferValid = false;

    return this;
  }
 @Override
 public JMSProducer setProperty(String name, Object value) {
   checkName(name);
   try {
     TypedProperties.setObjectProperty(new SimpleString(name), value, properties);
   } catch (HornetQPropertyConversionException hqe) {
     throw new MessageFormatRuntimeException(hqe.getMessage());
   } catch (RuntimeException e) {
     throw new JMSRuntimeException(e.getMessage());
   }
   return this;
 }