Results 1 to 5 of 5

Thread: JMS MessageSelector with message-driven-channel-adapter

  1. #1
    Join Date
    Jul 2009
    Location
    Charlotte, NC
    Posts
    131

    Default JMS MessageSelector with message-driven-channel-adapter

    Is there a way to specify MessageSelector on a JMS queue with jms:message-driven-channel-adapter?

    I have an event publishing JNDI queue configured within jms:message-driven-channel-adapter, and I want to pick up only those messages, where the JMS message header property "source" is "myApp".

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,853

    Default

    Yes, you should be able to provide a Message Selector (expression as String) via the "selector" attribute on the <message-driven-channel-adapter> element.

  3. #3
    Join Date
    Jul 2009
    Location
    Charlotte, NC
    Posts
    131

    Default

    I can't see it in 1.0.3, so I am guessing its in 2.0.x ...

    What an irony... I need to push my managers harder to bump up to SI 2...

  4. #4
    Join Date
    Jul 2009
    Location
    Charlotte, NC
    Posts
    131

    Default

    Mark,
    Unless SI 2.x passes through some thorough internal reviews and tests, here is what I have been privileged to:
    SI 1.0.4 with Spring 3.0.5

    Until now, it was SI 1.0.3 with Spring 2.5.6.SEC01

    Can you please advise, if there is/are any known compatibility/other issues with this specific match? I don't have too much space to experiment, so I want to minimize the risk, before moving this to dev boxes...

    Thanks!

  5. #5
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,853

    Default

    Spring Integration 1.0.4 should work with Spring 3.0.5, and we know people are using that combination. That said, the "official" dependency (used for all builds and tests) for 1.0.4 is still Spring 2.5.6.SEC01, whereas the "official" dependency for Spring Integration 2.0.1 is Spring 3.0.5. In other words, we recommend that you do upgrade as soon as you're able.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •