?? helloservicebean.java
字號:
package samples;
import java.rmi.RemoteException;
import java.security.Identity;
import java.util.Properties;
import javax.ejb.*;
public class HelloServiceBean implements SessionBean
{
private javax.ejb.SessionContext mySessionCtx = null;
final static long serialVersionUID = 3206093459760846163L;
public void ejbActivate() throws java.rmi.RemoteException
{
}
public void ejbCreate()
throws javax.ejb.CreateException, java.rmi.RemoteException
{
}
public void ejbPassivate() throws java.rmi.RemoteException
{
}
public void ejbRemove() throws java.rmi.RemoteException
{
}
public javax.ejb.SessionContext getSessionContext()
{
return mySessionCtx;
}
public String hello(String phrase)
{
return "HELLO!! You just said :" + phrase;
}
public void setSessionContext(javax.ejb.SessionContext ctx)
throws java.rmi.RemoteException
{
mySessionCtx = ctx;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -