1 16 17 package org.springframework.ejb.support; 18 19 import javax.ejb.MessageDrivenBean ; 20 import javax.ejb.MessageDrivenContext ; 21 22 import org.apache.commons.logging.Log; 23 import org.apache.commons.logging.LogFactory; 24 25 44 public abstract class AbstractMessageDrivenBean extends AbstractEnterpriseBean 45 implements MessageDrivenBean { 46 47 48 protected final Log logger = LogFactory.getLog(getClass()); 49 50 private MessageDrivenContext messageDrivenContext; 51 52 53 57 public void setMessageDrivenContext(MessageDrivenContext messageDrivenContext) { 58 this.messageDrivenContext = messageDrivenContext; 59 } 60 61 65 protected final MessageDrivenContext getMessageDrivenContext() { 66 return this.messageDrivenContext; 67 } 68 69 77 public void ejbCreate() { 78 loadBeanFactory(); 79 onEjbCreate(); 80 } 81 82 89 protected abstract void onEjbCreate(); 90 91 } 92 | Popular Tags |