Announcement Announcement Module
Collapse
No announcement yet.
setMessageSelector of DefaultMessageListenerContainer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • setMessageSelector of DefaultMessageListenerContainer

    Hi guys,

    I have a ArrayList of correlation IDs and i want to use setMessageSelector of DefaultMessageListener to listern of only these ID from output queue. Can somebody please let me know if its possible?

    regards,
    muhwas

  • #2
    DMLS - setMessageSelector

    HTML Code:
    /**
    	 * Set the JMS message selector expression (or <code>null</code> if none).
    	 * Default is none.
    	 * <p>See the JMS specification for a detailed definition of selector expressions.
    	 */
    	public void setMessageSelector(String messageSelector) {
    		this.messageSelector = messageSelector;
    	}
    
    	/**
    	 * Return the JMS message selector expression (or <code>null</code> if none).
    	 */
    	protected String getMessageSelector() {
    		return this.messageSelector;
    	}
    You can use a string, which is a conventional JMS spec. expression to filter messages. not an arraylist directly.

    If you want to do it at runtime, get the corresponding DMLC bean and call doShutdown on the DMLC. Set the property and then restart the DMLC at runtime by calling doInitialize().

    Let me know if this solves your problem

    Comment

    Working...
    X