com.ibm.websphere.samples.plantsbywebsphereejb
Class MailerBean

java.lang.Object
  extended by 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

Field Summary
static java.lang.String MAIL_SESSION
           
 
Constructor Summary
MailerBean()
           
 
Method Summary
 void createAndSendMail(CustomerInfo customerInfo, java.lang.String orderKey)
          Create a mail message and send it.
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 void setSessionContext(javax.ejb.SessionContext sc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIL_SESSION

public static final java.lang.String MAIL_SESSION
See Also:
Constant Field Values
Constructor Detail

MailerBean

public MailerBean()
Method Detail

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