| How to add a Selector with MDB 3.0 ? |
| Written by Mark S. | |||||
|
Message selectors allow an MDB to be more selective about the messages it receives from a particular topic or queue. Message selectors use Message properties as criteria in conditional expressions. (Message selectors are also based on message headers, which are outside the scope of this chapter.) These conditional expressions use Boolean logic to declare which messages should be delivered to a client. Now with MDB 3.0 it's easier to configure a selector : simply add an @ActivationConfigProperty at the top of your MDB: @MessageDriven(activationConfig = { public class Mdbsample implements MessageListener { ... }
JBoss.org Search
Custom Search
Only registered users can write comments!
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved." |


