Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-337

more than one @OnMessage isn't working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.1.0.CR4
    • Core
    • Hide
      • annotate a ServerEndpoint with more than one onMessage override (e.g. onMessage(String) and onMessage(PongMessage))
      • connect from a client
      • send a message from the client that would normally be handled by the second declared onMessage override
      • confirm that the first override works but the second doesn't
      • swap the declared order of the override handlers
      • repeat test, confirm that the first override works but the second doesn't
      Show
      annotate a ServerEndpoint with more than one onMessage override (e.g. onMessage(String) and onMessage(PongMessage)) connect from a client send a message from the client that would normally be handled by the second declared onMessage override confirm that the first override works but the second doesn't swap the declared order of the override handlers repeat test, confirm that the first override works but the second doesn't

      In my annotated ServerEndpoint, I have @OnMessage overrides for String and PongMessage types. Whichever handler is declared first in my source file is the one that works. The second one is never invoked.

            sdouglas1@redhat.com Stuart Douglas
            mparker_polycom Matt Parker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: