https://issues.apache.org/bugzilla/show_bug.cgi?id=54182
Bug ID: 54182
Summary: Support sending of ByteMessage for JMS Publisher.
Product: JMeter
Version: 2.8
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Main
Assignee: [email protected]
Reporter: [email protected]
Classification: Unclassified
Please could you add in the publisher JMS sample, the possibility to send a
message text as ByteMessage.
Like something like this :
public BytesMessage publish(String text, String destinationName, Map<String,
String> properties)
throws JMSException, NamingException {
byte[] bArray = text.getBytes("UTF-8");
BytesMessage bmsg = session.createTextMessage( bArray );
Utils.addJMSProperties(bmsg, properties);
if (staticDest || destinationName == null) {
producer.send(bmsg);
} else {
Destination dest = Utils.lookupDestination(ctx, destinationName);
producer.send(dest, bmsg);
}
return bmsg;
}
Thx in advance.
--
You are receiving this mail because:
You are the assignee for the bug.