|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ejb.ESessionBean com.bankframe.services.mail.SendMailBean
The Mail service allows a BankFrame MCA based system to send e-mail messages to a specified user over the Internet or an Intranet.
It uses Sun's javax.mail API to create and send e-mail messages.
Note, that the MCA Mail Service only sends e-mail.
Constructor Summary | |
SendMailBean()
|
Method Summary | |
void |
ejbCreate()
The ejbCreate method |
void |
ejbPostCreate()
The ejbPostCreate method. |
java.util.Vector |
processDataPacket(DataPacket data)
The processDataPacket method is responsible for handling a DataPacket that contains a request to send an email. |
void |
sendMail(java.lang.String mailFrom,
java.lang.String[] addresses,
java.lang.String[] ccAddresses,
java.lang.String subject,
java.lang.StringBuffer message,
java.lang.String content,
java.lang.String connTimeout,
java.lang.String debug)
This method sends the email. |
void |
sendMail(java.lang.String mailFrom,
java.lang.String[] addresses,
java.lang.String[] ccAddresses,
java.lang.String subject,
java.lang.String text,
java.lang.String content,
java.lang.String connTimeout,
java.lang.String debug)
This method sends the email. |
void |
sendMail(java.lang.String mailFrom,
java.lang.String[] addresses,
java.lang.String subject,
java.lang.String text)
Sends the email. |
void |
sendMail(java.lang.String mailFrom,
java.lang.String[] addresses,
java.lang.String subject,
java.lang.StringBuffer message)
This method sends the email. |
Methods inherited from class com.bankframe.ejb.ESessionBean |
audit, ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SendMailBean()
Method Detail |
public void ejbCreate()
ejbCreate
in class ESessionBean
public void ejbPostCreate()
ejbPostCreate
in class ESessionBean
public java.util.Vector processDataPacket(DataPacket data) throws ProcessingErrorException, java.rmi.RemoteException
processDataPacket
in interface ESession
processDataPacket
in class ESessionBean
data
- The DataPacket to process.
ProcessingErrorException
- The exception thrown if there is an error in processing the mail request.
java.rmi.RemoteException
public void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String[] ccAddresses, java.lang.String subject, java.lang.String text, java.lang.String content, java.lang.String connTimeout, java.lang.String debug) throws javax.mail.MessagingException
mailFrom
- is the address of the senderaddresses
- is an array of addresses to send the mail toccAddresses
- is an array of CC-addresses to CC the mail tosubject
- is the subject titletext
- is the mail messagecontent
- is the content type of the message, defaults to "text/plain" if nullconnTimeout
- is the timeout value for sending the message, default to 15000 if nulldebug
- indicates if the mail API is set in debug mode, this can be null
javax.mail.MessagingException
- if an error occurs sending the mailpublic void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String subject, java.lang.String text) throws javax.mail.MessagingException
mailFrom
- is the address of the senderaddresses
- is an array of addresses to send the mail tosubject
- is the subject titletext
- is the mail message
javax.mail.MessagingException
- if an error occurs sending the mailpublic void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String subject, java.lang.StringBuffer message) throws javax.mail.MessagingException
addresses
- is an array of addresses to send the mail tosubject
- is the subject titlemessage
- is the mail message
javax.mail.MessagingException
- if an error occurs sending the mailpublic void sendMail(java.lang.String mailFrom, java.lang.String[] addresses, java.lang.String[] ccAddresses, java.lang.String subject, java.lang.StringBuffer message, java.lang.String content, java.lang.String connTimeout, java.lang.String debug) throws javax.mail.MessagingException
addresses
- is an array of addresses to send the mail toccAddresses
- is an array of CC-addresses to CC the mail tosubject
- is the subject titlemessage
- is the mail messagecontent
- is the content type of the message, defaults to "text/plain" if nullconnTimeout
- is the timeout value for sending the message, default to infinite if nulldebug
- indicates if the mail API is set in debug mode, this can be null
javax.mail.MessagingException
- if an error occurs sending the mail
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |