@Override public void setByteProperty(final String name, final byte value) throws JMSException { checkProperty(name); message.putByteProperty(name, value); }
@Override public void setByteProperty(final String name, final byte value) throws JMSException { checkProperty(name); message.putByteProperty(name, value); }
@Override public void setByteProperty(final String name, final byte value) throws JMSException { checkProperty(name); message.putByteProperty(name, value); }
@Override public void setByteProperty(final String name, final byte value) throws JMSException { checkProperty(name); message.putByteProperty(name, value); }
@Override public void setByteProperty(final String name, final byte value) throws JMSException { checkProperty(name); message.putByteProperty(name, value); }
msg.getBodyBuffer().writeString("Bob the giant pig " + i); msg.putBooleanProperty("myBooleanProperty", Boolean.TRUE); msg.putByteProperty("myByteProperty", new Byte("0")); msg.putBytesProperty("myBytesProperty", new byte[]{0, 1, 2, 3, 4}); msg.putDoubleProperty("myDoubleProperty", i * 1.6);
private void sendMessages() throws Exception { ClientSession session = sf.createSession(true, true); String filter = null; session.createAddress(SimpleString.toSimpleString(ADDRESS), RoutingType.MULTICAST, false); session.createQueue(ADDRESS, RoutingType.MULTICAST, ADDRESS, filter, true); ClientProducer producer = session.createProducer(ADDRESS); for (int i = 0; i < numMessages; i++) { ClientMessage message = session.createMessage(true); setBody(i, message); message.putIntProperty("int", i); message.putShortProperty("short", (short) i); message.putByteProperty("byte", (byte) i); message.putFloatProperty("float", floatValue(i)); message.putStringProperty(SIMPLE_STRING_KEY, new SimpleString(Integer.toString(i))); message.putBytesProperty("byte[]", byteArray(i)); message.putObjectProperty("null-value", null); producer.send(message); } session.commit(); }
msg.getBodyBuffer().writeString("Bob the giant pig " + i); msg.putBooleanProperty("myBooleanProperty", Boolean.TRUE); msg.putByteProperty("myByteProperty", new Byte("0")); msg.putBytesProperty("myBytesProperty", new byte[]{0, 1, 2, 3, 4}); msg.putDoubleProperty("myDoubleProperty", i * 1.6);