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

📄 basicsessionbean.java

📁 考勤管理系统源码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -