basicsessionbean.java
来自「考勤管理系统源码」· Java 代码 · 共 38 行
JAVA
38 行
package com.wiley.compBooks.EJwithUML.Base.EjbUtil;
import java.rmi.*;
import javax.ejb.*;
import javax.naming.*;
/**
* An adapter base class for all session beans. it provides default
* implementations for all the required methods of the SessionBean interface.
*/
public class BasicSessionBean implements SessionBean
{
protected SessionContext context;
public void ejbRemove() throws RemoteException
{
}
public void ejbPassivate() throws RemoteException
{
}
public void ejbActivate() throws RemoteException
{
}
public void setSessionContext(SessionContext context)
{
this.context = context;
}
protected Context getInitialContext() throws NamingException
{
return new InitialContext();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?