profilemgrwebimpl.java
来自「《Java网络程序设计.rar》包括三个网络程序的源代码。」· Java 代码 · 共 61 行
JAVA
61 行
/* */package org.impact.stars.control.web;import org.impact.stars.organizationmd.profilemgr.model.ProfileMgrModel;import org.impact.stars.organizationmd.profilemgr.ejb.ProfileMgrLocal;import org.impact.stars.control.web.ModelManager;import org.impact.stars.control.web.ModelUpdateListener;import org.impact.stars.util.JNDINames;import org.impact.stars.util.EJBUtil;import java.rmi.RemoteException;import org.impact.stars.organizationmd.profilemgr.exceptions.ProfileMgrAppException;import org.impact.stars.control.exceptions.GeneralFailureException;import org.impact.stars.control.exceptions.StarsAppException;/** * This class is the web-tier representation of the ProfileMgr. */public class ProfileMgrWebImpl extends ProfileMgrModel implements ModelUpdateListener, java.io.Serializable { private ModelManager mm; private ProfileMgrLocal proEjb; public ProfileMgrWebImpl(ModelManager mm) { super(null, null); this.mm = mm; mm.addListener(JNDINames.PROFILEMGR_EJBHOME, this); } public ProfileMgrWebImpl() { super(); // do nothing. used for JSP useBean directive. } public void performUpdate() throws StarsAppException { // Get data from the EJB if (proEjb == null) { proEjb = mm.getProfileMgrEJB(); } try { if (proEjb != null) copy(proEjb.getDetails()); } catch (RemoteException re) { throw new GeneralFailureException(re.getMessage()); } }/* public String getBanner(String favCategory) throws ProfileMgrAppException{ ProfileMgrModel proMod = new ProfileMgrModel(); return proMod.getBanner(favCategory); }*/}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?