Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
2.2.18.Final
-
None
Description
- hq-message-id is not a valid name for selector
- javax.jms.InvalidSelectorException: Invalid filter: hq-message-id='STOMP19327352839' Encountered "- message - id = \'STOMP19327352839\'" at line 1, column 3.
- The dash character is invalid.
- here is the spec of the message selector:
"3.8.1.1 Message Selector Syntax
Identifiers:
– An identifier is an unlimited length character sequence that must begin
with a Java identifier start character and all following characters must be
Java identifier part characters. An identifier start character is any
character for which the method Character.isJavaIdentifierStart returns true.
This includes ‘_’ and ‘$’.
setting a connection-ttl doesn't work because of the following issue:
In classe org.hornetq.core.protocol.stomp.StompProtocolManager
in method public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
The following line cannot work:
Long ttl = (Long)acceptorUsed.getConfiguration().get("connection-ttl");
It raises a java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long"