@Override public long getLongProperty(final String name) throws JMSException { if (MessageUtil.JMSXDELIVERYCOUNT.equals(name)) { return message.getDeliveryCount(); } try { return message.getLongProperty(name); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLongProperty(final String name) throws JMSException { if (MessageUtil.JMSXDELIVERYCOUNT.equals(name)) { return message.getDeliveryCount(); } try { return message.getLongProperty(name); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
@Override public long getLongProperty(final String name) throws JMSException { if (MessageUtil.JMSXDELIVERYCOUNT.equals(name)) { return message.getDeliveryCount(); } try { return message.getLongProperty(name); } catch (ActiveMQPropertyConversionException e) { throw new MessageFormatException(e.getMessage()); } }
Long queueID = message.getLongProperty(ManagementHelper.HDR_BINDING_ID);
currentMsg = msg.getLongProperty("count"); if (currentMsg < lastCommit) { failed("Message received in duplicate out of order, LastCommit = " + lastCommit + ", currentMsg = " + currentMsg);
Assert.assertEquals(i * 2.5F, msg.getFloatProperty("myFloatProperty"), 0.000001); Assert.assertEquals(i, msg.getIntProperty("myIntProperty").intValue()); Assert.assertEquals(Long.MAX_VALUE - i, msg.getLongProperty("myLongProperty").longValue()); Assert.assertEquals(i, msg.getObjectProperty("myObjectProperty")); Assert.assertEquals(new Integer(i).shortValue(), msg.getShortProperty("myShortProperty").shortValue());
assertEquals(i * 2.5F, msg.getFloatProperty("myFloatProperty"), 0.000001); assertEquals(i, msg.getIntProperty("myIntProperty").intValue()); assertEquals(Long.MAX_VALUE - i, msg.getLongProperty("myLongProperty").longValue()); assertEquals(i, msg.getObjectProperty("myObjectProperty")); assertEquals(true, msg.getPropertyNames().contains(SimpleString.toSimpleString("myNullObjectProperty")));
long oldID = msg.getLongProperty(Message.HDR_ORIG_MESSAGE_ID);