2 Replies Latest reply on Jun 21, 2006 2:55 AM by Tim Fox

    Simple message selector question

    DENNIS CREEDEN Newbie


      Hello,

      I am passing messages around in a couple queues and want to filter the messages based a session key.

      I have a SessionKey string property in the TextMessages and try to filter the messages with this code:


      String messageSelector = "SessionKey='" + sessionKey + "'";

      MessageConsumer messageConsumer = session.createConsumer(queue, messageSelector);

      I doesn't work. What am I missing?

      Thanks,

      Dennis