You don't use Last-value queue like you should.
You must pass a string property value for the Last-Value property "_HQ_LVQ_NAME"
If you are using HornetQ Core API, you must use message.putStringProperty(String, String) to have it work. If you use the message body, HornetQ will not find the last-value queue property.
Tell me how it goes,
I got it to work by assigning a value to the StringProperty marked as last value:
ClientMessage clientMessage = stompServer.getClientSession().createMessage(true);
In order for the perl STOMP client to be able to access the content, I still have to put the same value in the message body, but it's a workaround I'm able to live with. Thanks again!