This content has been marked as final.
Show 3 replies
-
1. Re: allowing a client or MDB to specify by message header, m
peterj Nov 3, 2008 7:01 PM (in response to ilangocal)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");
-
2. Re: allowing a client or MDB to specify by message header, m
ilangocal Nov 13, 2008 6:54 PM (in response to ilangocal)Thanks for that tip.
I am trying to test it out now. -
3. setting JMSPriority header message
ilangocal Nov 13, 2008 7:39 PM (in response to ilangocal)I have a JMS client servlet sending messages to queue. I would like to set properties like a JMSPriority Header with a certain value, JMSMessageID, JMSXDeliveryCount.
How can I do this in @activationConfig in the MessageBean and in the Message Producer Servlet?
thanks