public static String getMessageSelector ( String eventName , IPublisherInfo publisherInfo ) { StringBuilder sb = new StringBuilder ( "(JMSType='" + eventName + "' OR JMSType LIKE '" + eventName + ".%') AND (Recipients IS NULL" ) ; if ( publisherInfo != null ) { for ( String selector : publisherInfo . getAttributes ( ) . values ( ) ) { addRecipientSelector ( selector , sb ) ; } } sb . append ( ' ' ) ; return sb . toString ( ) ; }
Creates a message selector which considers JMSType and recipients properties .