I searched a lot in web, couldn't find any answers.
Web console does not allow to send custom jms header or properties.
So, you need to use the rest api:
http://activemq.apache.org/rest.html
The following curl worked for me:
{'a': 'b'} curl -H 'Authorization: Basic YWabcdefg==' \
-d "body={'a': 'b'}" \
-d "JMSCorrelationID=9999" \
-d "JMSReplyTo=NickFury" \
-d "SomeProperty=SomeValue" \
http://localhost:8161/api/message/avenger_tasks?type=queue
Or with user and password
curl -u admin:admin \
-d "body={'a': 'b'}" \
-d "JMSCorrelationID=9999" \
-d "JMSReplyTo=NickFury" \
-d "SomeProperty=SomeValue" \
http://localhost:8161/api/message/avenger_tasks?type=queue
A "hacky way" is to use your browser's developer tools to insert a hidden field in the "sendMessage.action". The name of the new hidden field should be the name of the custom header that you want to send.
For example, in Chrome,
<form> element right below the selected element<input type="hidden".../> element and duplicate it<input type="hidden".../> change the name to contain the value of your customer header name and in the value attribute set the desired value of the header