1 22 package org.jboss.ejb3.test.mdbtransactions; 23 24 import javax.ejb.MessageDrivenBean ; 25 import javax.ejb.MessageDrivenContext ; 26 import javax.ejb.EJBException ; 27 28 import javax.jms.MessageListener ; 29 import javax.jms.Message ; 30 31 import org.jboss.logging.Logger; 32 33 36 public class QueueBean21 implements MessageDrivenBean , MessageListener 37 { 38 private static final Logger log = Logger.getLogger(QueueBean21.class); 39 40 private MessageDrivenContext ctx = null; 41 42 public void onMessage(Message message) 43 { 44 log.info("***** onMessage " + message); 45 } 46 47 public void setMessageDrivenContext(MessageDrivenContext ctx) 48 throws EJBException 49 { 50 this.ctx = ctx; 51 } 52 53 public void ejbCreate(){} 54 55 public void ejbRemove(){} 56 } 57 58 59 | Popular Tags |