Uploaded image for project: '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
    • Status: Resolved
    • Priority: 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

        Attachments

          Activity

            People

            • Assignee:
              costin Costin Leau
              Reporter:
              pkainulainen Petri Kainulainen
              Last updater:
              Trevor Marshall
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: