/ Published in: Java

An example of an annotated MDB in JBoss with some interesting. options
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
@MessageDriven( activationConfig = { @ActivationConfigProperty( propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/DummyQueue"), @ActivationConfigProperty(propertyName = "MaxPoolSize", propertyValue = "3"), @ActivationConfigProperty( propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")}) public class DummyMDBean implements MessageListener { public void onMessage(final Message message) { // your logic goes here } }
Comments
