The @ActivationConfigProperty annotation can be used to select message a particular message bean is going to consume. In the example below the message bean will only consume messages with a key of value 'special'.
@MessageDriven(activationConfig={
@ActivationConfigProperty(
propertyName="messageSelector",
propertyValue="key = special"}
)
public class MyMessageBean {
}