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

📄 profilemgrwebimpl.java

📁 J2EE & Tomcat books published by hope
💻 JAVA
字号:
/* */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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -