Announcement Announcement Module
No announcement yet.
AAdding value for the messageSelector property dynamically. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • AAdding value for the messageSelector property dynamically.

    I have added a messageSelector property to a "org.springframework.jms.listener.SimpleMessageLis tenerContainer" class in my Spring's ApplicationContext.xml file like this -
    <bean class="org.springframework.jms.listener.SimpleMess ageListenerContainer">
    <property name="messageSelector" value="msgType = '564' OR msgType = '568'"/>

    I have a requirement that suggests me to build the criteria for messageSelector in my code and runtime and not to be written statically inside the XML, like the way it is now, so something of this sort -
    <property name="messageSelector" value="$messageSelectorExpression"/>
    for making this code reusable.
    Can someone suggest the syntax for it or an idea so as to how to get it done.
    Responses will be appreciated

  • #2
    You can do vivid research through internet if you want. You can find many sites that gives you some samples of coding. Just learn to explore.

    Get your free Car tips| Car care Tips
    Last edited by kayeforare; May 16th, 2011, 11:58 PM. Reason: additional info