?? helloservicebean.java
字號:
// ==================== Program Discription ==========================
// HelloServiceBean.java
// 程序描述:示例21-12: 把ejb部署成Web服務
// ==============================================================
package com.webservice.hello;
import javax.ejb.*;
public class HelloServiceBean implements SessionBean
{
public SessionContext EJB_Context = null;
public void ejbCreate ()
{
}
public void ejbRemove ()
{
}
public void ejbActivate ()
{
}
public void ejbPassivate ()
{
}
public void setSessionContext (SessionContext sc)
{
this.EJB_Context=sc;
}
public String sayHello(String name)
{
return "Hello " + name + " (from HelloServiceEJB)";
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -