In the blog posting, Java MQ Code to Retrieve Messages from a Queue Based on a Filter, I posted code for a Java MessageSelector class.
I have updated the setFilter method to catch any invalid values that may be passed to the MessageSelector class on the setFilter call.
You can download the source code for the test driver program called MQTest12MS from here which includes the MessageSelector class. If you just want the MessageSelector class, you can download from here.
Note: I have updated the original blog posting with the updated code.
Regards,
Roger Lacroix
Capitalware Inc.