mailservice.java
来自「Oracle的J2EE Sample」· Java 代码 · 共 38 行
JAVA
38 行
/*
* @author : Elangovan
* @version : 1.0
*
* Development Environment : Oracle9i JDeveloper
* Name of the File : MailService.java
*
* Creation / Modification History
* Elangovan 26-Apr-2002 Created
*
*/
package oracle.otnsamples.ibfbs.admin.ejb;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
/**
* This interface is the remote view to invoke the MailService. Clients use this
* interface to invoke methods on the MailService.
*
*/
public interface MailService extends EJBObject {
/**
* This method connects to the Mail server and sends mail.
*
* @param toAddress Mail address of the recipient
* @param fromAddress Mail address of the sender
* @param subject Subject of the message
* @param message mail body
* @return status of the mail, 0 - sent , -1 - send failed
* @since 1.0
*/
public Integer sendMail(String toAddress, String fromAddress,
String subject, String message)
throws RemoteException;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?