com.ibm.websphere.samples.plantsbywebsphereejb
Class MailerBean
java.lang.Object
com.ibm.websphere.samples.plantsbywebsphereejb.MailerBean
- All Implemented Interfaces:
- java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.SessionBean
public class MailerBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
MailerBean is the implementation class for the Mailer stateless session EJB.
MailerBean implements each of the business methods in the Mailer
EJB remote interface and each of the EJB lifecycle methods in the javax.ejb.SessionBean
interface.
- See Also:
Mailer,
MailerHome,
Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAIL_SESSION
public static final java.lang.String MAIL_SESSION
- See Also:
- Constant Field Values
MailerBean
public MailerBean()
createAndSendMail
public void createAndSendMail(CustomerInfo customerInfo,
java.lang.String orderKey)
throws MailerAppException
- Create a mail message and send it.
- Parameters:
customerInfo - Customer information.orderKey -
- Throws:
MailerAppException
ejbCreate
public void ejbCreate()
setSessionContext
public void setSessionContext(javax.ejb.SessionContext sc)
- Specified by:
setSessionContext in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemove in interface javax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivate in interface javax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivate in interface javax.ejb.SessionBean