Spring Data Redis
  1. Spring Data Redis
  2. DATAREDIS-98

Pub-Sub: channel is not passed correctly to a POJO message listener

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Complete
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: None
    • Labels:
      None

      Description

      When a POJO message listener is used, the channel information passed to the
      handleMessage(Contact contact, String channel) is always null. The problem seems to be in the line 724 of RedisMessageListenerContainer class. This line contains following code:

      processMessage(messageListener, message, null);

      This code should be changed to:

      processMessage(messageListener, message, message.getChannel());

      The original discussion about this problem is found here:

      http://forum.springsource.org/showthread.php?128551-Spring-Data-Redis-PubSub-channel-is-not-passed-correctly-to-POJO-message-listener

        Activity

        Hide
        Costin Leau added a comment -

        The bug has been addressed already in 1.0.2

        Show
        Costin Leau added a comment - The bug has been addressed already in 1.0.2

          People

          • Assignee:
            Costin Leau
            Reporter:
            Petri Kainulainen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: