doctorinfobean.java

来自「BEA WebLogic Server 8.1大全 = BEA webLogic」· Java 代码 · 共 57 行

JAVA
57
字号
package com.wlsunleashed.webservices;

/**
 * Class DoctorInfoBean
 * Description: An EJBGen-annotated Stateless Session Bean class
 *				to be used as a backend component for a Web Service
 *              
 *
 * Copyright:    Copyright (c) 2002
 * Company:      Gamma Enterprise Technologies
 * @author Jeff Marin <jeffm@getgamma.com>
 * @version 1.0  10/1/2002
 */


import java.rmi.RemoteException;
import java.util.*;
import javax.ejb.*;
import javax.naming.*;
import javax.rmi.PortableRemoteObject;

/**
 *
 * @ejbgen:session
 *    ejb-name = DoctorInfoEJB
 *    default-transaction = Required
 *
 * @ejbgen:jndi-name
 *  remote = com.wls7unleashed.webservices.DoctorInfoHome
 *
 * @ejbgen:ejb-client-jar
 *   file-name = DoctorInfo_client.jar
 */
public class DoctorInfoBean implements SessionBean {

  private SessionContext ctx;

 /**
  * @ejbgen:remote-method
  */
  public String getGreeting2(String name) {
  	return "Hello, " + name + " the local time is " + new java.util.Date();
  }

  public void setSessionContext(SessionContext c) {
    ctx = c;
  }

  public void ejbCreate() {}

  public void ejbActivate() {}

  public void ejbPassivate() {}

  public void ejbRemove() {}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?