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

📄 ssglydelegate.java

📁 以前做的一个j2ee的项目
💻 JAVA
字号:
package gov.gdlt.ssgly.taxcore.comm.bizdelegate;

import javax.naming.NamingException;
import javax.ejb.CreateException;
import gov.gdlt.ssgly.taxcore.comm.gateway.SsglyGatewayLocalHome;
import gov.gdlt.ssgly.taxcore.comm.gateway.SsglyGatewayHome;
import gov.gdlt.ssgly.taxcore.comm.servicelocator.EJBLocator;
import gov.gdlt.ssgly.taxcore.comm.event.RequestEvent;
import gov.gdlt.ssgly.taxcore.comm.event.ResponseEvent;
import gov.gdlt.ssgly.taxcore.comm.bizinterface.ISsglyService;


/**
 * Business Delegate 模式的实现。
 *
 * <p>Title: SsglyDelegate</p>
 * <p>Description: 税收管理员系统</p>
 * <p>Copyright: Copyright (c) 2005 广州市地方税务局</p>
 * <p>Company: 信息中心</p>
 * @author Lemon
 * @version 1.0
 * @since 2005.8.8.
 */


public class SsglyDelegate implements ISsglyService {

    private ISsglyService ssglyService;

    public SsglyDelegate() {
        init();
    }

    public void init() {
        // Look up and obtain our session bean
        try {

            SsglyGatewayLocalHome ssglyLocalHome = (SsglyGatewayLocalHome)
                    EJBLocator.getInstance().
                    getLocalHome(
                            "SsglyGatewayLocal", SsglyGatewayLocalHome.class);
            ssglyService = ssglyLocalHome.create();

        } catch (NamingException e) {
            throw new RuntimeException(e);
        } catch (CreateException e) {
            throw new RuntimeException(e);
        }

    }

    public ResponseEvent invokeTask(RequestEvent req) throws Exception {
        return ssglyService.invokeTask(req);
    }

    public String getVersion() {
        return ssglyService.getVersion();
    }


}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -