Java Reference
In-Depth Information
propertyValue =
BookingQueueDefinition.BOOKING_QUEUE),
@ActivationConfigProperty(propertyName =
"destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName =
"messageSelector",
propertyValue = "priority = 'HIGH'"),}
)
public class BookingQueueReceiver implements
MessageListener {
// Some code
}
At the same time, you can deploy another MDB that is in charge of consuming messages
that are sent with a LOW priority:
@MessageDriven(name = " LowPriorityBookingQueueReceiver",
activationConfig = {
@ActivationConfigProperty(propertyName =
"destinationLookup",
propertyValue =
BookingQueueDefinition.BOOKING_QUEUE),
@ActivationConfigProperty(propertyName =
"destinationType",
propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName =
"messageSelector",
propertyValue = "priority = 'LOW'"),}
)
public class LowPriorityBookingQueueReceiver implements
MessageListener {
// Some code
}
When talking about filtering, we have to say a few words concerning performance. In
HornetQ queues and topics, there are filtering messages on a different stage. In the case of
Search WWH ::




Custom Search