You can specify a messageSelector property and give it a value to check. Example, here is
the MDB declaration:
@MessageDriven(activationConfig = {
| . . .
| @ActivationConfigProperty(propertyName = "messageSelector", propertyValue
= "Stuff = 'interesting'")})
| public class SomeMdb implements MessageListener { ... }
To get this MDB to process a message, the client must set the 'Stuff' property on
the message:
message.setStringProperty("Stuff", "interesting");
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4186519#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...