com.sun.j2ee.blueprints.mail.ejb
Class MailerEJB
java.lang.Object
|
+--com.sun.j2ee.blueprints.mail.ejb.MailerEJB
- public class MailerEJB
- extends java.lang.Object
- implements javax.ejb.SessionBean
Session Bean implementation of MailerEJB.
Used to send a confirmation email to a customer
after a purchase is completed.
This functionality is enabled by modifying the
sendConfirmationMail property at deployment time.
- See Also:
MailHelper
,
com.sun.estore.control.ejb.StateMachine
, Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
MailerEJB
public MailerEJB()
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
sendMail
public void sendMail(EMailMessage eMess)
throws SendMailException
- This method creates an email confirmation message
for an order and sends an email to the customer.
- Parameters:
eMess
- content for the email message for a particular
order
Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.