1 22 package org.jboss.ejb3.test.mdb; 23 24 import javax.ejb.ActivationConfigProperty ; 25 import javax.ejb.MessageDriven ; 26 import javax.jms.Message ; 27 import javax.jms.MessageListener ; 28 29 import org.jboss.logging.Logger; 30 31 35 @MessageDriven (activationConfig = 36 { 37 @ActivationConfigProperty (propertyName="destinationType", propertyValue="javax.jms.Queue"), 38 @ActivationConfigProperty (propertyName="destination", propertyValue="queue/dlqtest"), 39 @ActivationConfigProperty (propertyName="dLQMaxResent", propertyValue="1") 40 }) 41 public class DlqTestMDB implements MessageListener 42 { 43 private static final Logger log = Logger.getLogger(DlqTestMDB.class); 44 45 public void onMessage(Message message) 46 { 47 System.out.println("*** DlqTestMDB onMessage "); 48 throw new RuntimeException ("force resend"); 49 } 50 } 51 | Popular Tags |