Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-1011

Change Stomp message id key from 'hq-message-id' to 'hqMessageId' and Fix ClassCastException on stomp 'connection-ttl'

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    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"

      Attachments

        Activity

          People

            gaohoward Howard Gao
            gaohoward Howard Gao
            Archiver:
            samahaja@redhat.com Sagar Mahajan

            Dates

              Created:
              Updated:
              Resolved:
              Archived: