-
1. Re: Last-value queue
jmesnil Jun 21, 2010 5:23 AM (in response to diktatoren)You don't use Last-value queue like you should.
See the doc http://hornetq.sourceforge.net/docs/hornetq-2.1.0.Final/user-manual/en/html/last-value-queues.html.
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,
jeff
-
2. Re: Last-value queue
diktatoren Jun 21, 2010 9:52 AM (in response to jmesnil)Hi Jeff,
I got it to work by assigning a value to the StringProperty marked as last value:
ClientMessage clientMessage = stompServer.getClientSession().createMessage(true);
clientMessage.putStringProperty("_HQ_LVQ_NAME", "ANTALLRETTE");
clientMessage.putStringProperty("ANTALLRETTE", String.valueOf(numCorrect.getNumCorrect()));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!
Pål