com.sun.j2ee.blueprints.petstore.control.ejb
Class MailAction

java.lang.Object
  |
  +--com.sun.j2ee.blueprints.petstore.control.ejb.MailAction

public class MailAction
extends java.lang.Object

This class encapsulates all the logic to build an EMail Message. It uses the Order EJB and Account EJB to get the info to build and send a message.


Constructor Summary
MailAction()
           
 
Method Summary
 void sendConfirmationMessage(int orderId)
          This method creates an email confirmation message for an order and sends an email to the customer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailAction

public MailAction()
Method Detail

sendConfirmationMessage

public void sendConfirmationMessage(int orderId)
This method creates an email confirmation message for an order and sends an email to the customer. The Order EJB and Account EJB are accessed to create the email message content.
Parameters:
order - is the orderEJB used to generate content for the email message for a particular customer order
Returns:
an EMailMessage object containing all info to send the email.


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.