⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mailservice.java

📁 Oracle的J2EE Sample
💻 JAVA
字号:
/*
 * @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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -