[jboss-user] [JBoss Messaging] - Re: allowing a client or MDB to specify by message header, m

PeterJ do-not-reply at jboss.com
Mon Nov 3 19:01:51 EST 2008


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#4186519

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186519



More information about the jboss-user mailing list