亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? remoteserverconnector.java

?? 一個java方面的消息訂閱發送的源碼
?? JAVA
字號:
/**
 * Redistribution and use of this software and associated documentation
 * ("Software"), with or without modification, are permitted provided
 * that the following conditions are met:
 *
 * 1. Redistributions of source code must retain copyright
 *    statements and notices.  Redistributions must also contain a
 *    copy of this document.
 *
 * 2. Redistributions in binary form must reproduce the
 *    above copyright notice, this list of conditions and the
 *    following disclaimer in the documentation and/or other
 *    materials provided with the distribution.
 *
 * 3. The name "Exolab" must not be used to endorse or promote
 *    products derived from this Software without prior written
 *    permission of Exoffice Technologies.  For written permission,
 *    please contact info@exolab.org.
 *
 * 4. Products derived from this Software may not be called "Exolab"
 *    nor may "Exolab" appear in their names without prior written
 *    permission of Exoffice Technologies. Exolab is a registered
 *    trademark of Exoffice Technologies.
 *
 * 5. Due credit should be given to the Exolab Project
 *    (http://www.exolab.org/).
 *
 * THIS SOFTWARE IS PROVIDED BY EXOFFICE TECHNOLOGIES AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
 * EXOFFICE TECHNOLOGIES OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
 * OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * Copyright 2004-2005 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: RemoteServerConnector.java,v 1.5 2005/06/07 14:33:15 tanderson Exp $
 */
package org.exolab.jms.server.net;

import java.rmi.RemoteException;
import java.util.Hashtable;
import java.util.Map;
import javax.naming.Context;
import javax.naming.NamingException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.codehaus.spice.jndikit.NamingProvider;

import org.exolab.jms.authentication.AuthenticationMgr;
import org.exolab.jms.client.net.JmsServerStubImpl;
import org.exolab.jms.config.Configuration;
import org.exolab.jms.config.types.SchemeType;
import org.exolab.jms.net.orb.ORB;
import org.exolab.jms.net.orb.ORBFactory;
import org.exolab.jms.net.registry.LocalRegistry;
import org.exolab.jms.server.EmbeddedNameService;
import org.exolab.jms.server.ServerConnector;
import org.exolab.jms.server.ServerException;


/**
 * Implementation of the {@link ServerConnector} interface, that provides
 * remoting via an {@link ORB}.
 *
 * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a>
 * @version $Revision: 1.5 $ $Date: 2005/06/07 14:33:15 $
 */
public class RemoteServerConnector implements ServerConnector {

    /**
     * The configuration.
     */
    private final Configuration _config;

    /**
     * The connector configuration.
     */
    private final ConnectorCfg _connector;

    /**
     * The URI to export the server on. This is the URI that the server accepts
     * connections from clients.
     */
    private final String _exportURI;

    /**
     * The URI that clients connect to the server on. This is different to the
     * {@link _exportURI) if clients connect via a webserver.
     */
    private final String _connectURI;

    /**
     * The ORB.
     */
    private ORB _orb;

    /**
     * The logger.
     */
    private static final Log _log = LogFactory.getLog(
            RemoteServerConnector.class);


    /**
     * Construct a new <code>RemoteServerConnector</code>.
     *
     * @param scheme the type of the connector to use
     * @param config the server configuration
     */
    public RemoteServerConnector(SchemeType scheme, Configuration config) {
        if (scheme == null) {
            throw new IllegalArgumentException("Argument 'scheme' is null");
        }
        if (config == null) {
            throw new IllegalArgumentException("Argument 'config' is null");
        }
        _connector = ConnectorCfgFactory.create(scheme, config);
        _config = config;
        _exportURI = _connector.getExportURI();
        _connectURI = _connector.getConnectURI();
    }

    /**
     * Initialises the server interface for the specified connector.
     *
     * @throws ServerException if the interface cannot be initialised
     */
    public void init() throws ServerException {
        try {
            Map properties = _connector.getAcceptProperties();
            _orb = ORBFactory.createORB(AuthenticationMgr.instance(),
                                        properties);
            if (!_connectURI.equals(_exportURI)) {
                _orb.addRoute(_exportURI, _connectURI);
            }
        } catch (RemoteException exception) {
            throw new ServerException(
                    "Failed to create ORB for URI:" + _exportURI, exception);
        }
        try {
            LocalRegistry registry = _orb.getRegistry();

            RemoteServerConnectionFactory server =
                    new RemoteServerConnectionFactory(_orb, _exportURI);
            registry.bind("server", server.getProxy());
            if (_log.isInfoEnabled()) {
                _log.info("Server accepting connections on " + _exportURI);
            }

            if (_config.getServerConfiguration().getEmbeddedJNDI()) {
                NamingProvider provider =
                        EmbeddedNameService.getInstance().getNamingProvider();
                RemoteNamingProvider jndi = new RemoteNamingProvider(
                        provider, _orb, _connector.getJNDIExportURI());
                registry.bind("jndi", jndi.getProxy());
                if (_log.isInfoEnabled()) {
                    _log.info("JNDI service accepting connections on "
                              + _connector.getJNDIExportURI());
                }
            }

            JmsAdminServerImpl admin = new JmsAdminServerImpl(
                    _orb, _connector.getAdminExportURI());
            registry.bind("admin", admin.getProxy());
            if (_log.isInfoEnabled()) {
                _log.info("Admin service accepting connections on "
                          + _connector.getAdminExportURI());
            }

            registry.setReadOnly(true);
        } catch (Exception exception) {
            throw new ServerException(
                    "Failed to initialise the server interface", exception);
        }
    }

    /**
     * Bind any factory object specified in the configuration file to the
     * specified JNDI context.
     *
     * @param context context to bind factory objects
     * @throws NamingException if a naming error occurs
     */
    public void bindConnectionFactories(Context context)
            throws NamingException {
        // put together a list of parameters that the connection factories will
        // need to use to connect to this server
        Map properties = _connector.getConnectProperties();
        Hashtable env = new Hashtable();
        env.putAll(properties);
        ConnectionFactoryHelper.bind(context,
                                     _connector.getConnectionFactories(),
                                     JmsServerStubImpl.class, env);
    }

    /**
     * Close the interface, releasing any resources.
     *
     * @throws ServerException if the interface cannot be closed
     */
    public void close() throws ServerException {
        try {
            _orb.shutdown();
        } catch (RemoteException exception) {
            throw new ServerException(exception.getMessage(), exception);
        }
    }

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃精品在线观看| 亚洲国产综合人成综合网站| 欧美午夜精品理论片a级按摩| 成人免费高清在线| 国产成人超碰人人澡人人澡| 国产在线不卡一区| 国产精品一区三区| 国产成a人无v码亚洲福利| 国产成人高清在线| gogogo免费视频观看亚洲一| 91网站在线观看视频| 日本韩国欧美一区| 欧美色区777第一页| 欧美一级二级三级蜜桃| 日韩三级视频中文字幕| 欧美mv日韩mv国产| 中文字幕欧美国产| 一区二区在线观看视频在线观看| 亚洲一区二区欧美日韩| 蜜桃久久精品一区二区| 成人性生交大片免费看在线播放| 99精品桃花视频在线观看| 日本高清不卡视频| 日韩写真欧美这视频| 国产日韩欧美精品电影三级在线| 国产精品久久久久影院色老大 | 99久久精品一区二区| 欧美丝袜自拍制服另类| 日韩三区在线观看| 亚洲欧美日韩一区二区 | 国产日韩欧美综合在线| 一区二区三区四区高清精品免费观看| 亚洲午夜在线视频| 黑人精品欧美一区二区蜜桃| 91网站最新网址| 精品国产成人在线影院| 亚洲伊人色欲综合网| 经典三级一区二区| 色婷婷精品久久二区二区蜜臀av| 欧美一区二区三区免费观看视频| 国产精品入口麻豆九色| 热久久国产精品| 一本大道久久a久久综合婷婷| 日韩一级高清毛片| 一区二区三区四区国产精品| 国产精品一区二区在线观看不卡| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 91精品国产手机| 亚洲精品一二三| 国产suv精品一区二区三区| 69成人精品免费视频| 自拍偷拍欧美激情| 国产福利91精品| 日韩美女一区二区三区四区| 一区二区高清免费观看影视大全| 国产美女一区二区| 日韩欧美专区在线| 首页国产丝袜综合| 色94色欧美sute亚洲线路一ni| 国产亚洲人成网站| 国产在线播放一区三区四| 欧美一区二区三区视频在线观看| 亚洲综合一区二区精品导航| 97精品久久久午夜一区二区三区 | 日韩欧美国产综合一区 | 精品一区二区三区影院在线午夜| 91成人国产精品| 中文字幕在线观看一区二区| 懂色av一区二区在线播放| 精品国产电影一区二区 | 国产精品久久久久三级| 成人免费毛片高清视频| 亚洲国产精品成人综合| 成人黄色大片在线观看| 国产精品久久一卡二卡| 99久久精品国产麻豆演员表| √…a在线天堂一区| 色综合久久中文字幕| 亚洲人123区| 色久优优欧美色久优优| 一区二区三区91| 欧美精品v国产精品v日韩精品 | 日本一区二区高清| 成人综合婷婷国产精品久久蜜臀| 国产欧美一区二区精品秋霞影院| 丁香婷婷深情五月亚洲| 亚洲欧美视频在线观看| 欧美日韩综合一区| 欧美aa在线视频| 久久久精品tv| 99热国产精品| 午夜精品久久久久久久久久久| 日韩精品自拍偷拍| 国产一区二区视频在线播放| 国产精品日产欧美久久久久| 一本一道波多野结衣一区二区| 亚洲成人av一区二区| 日韩免费一区二区三区在线播放| 国产成人99久久亚洲综合精品| 国产精品剧情在线亚洲| 91精品国模一区二区三区| 精品无人区卡一卡二卡三乱码免费卡 | 亚洲一级二级三级| 日韩精品最新网址| 99久久精品情趣| 美女脱光内衣内裤视频久久网站 | 亚洲色欲色欲www在线观看| 欧美性猛交一区二区三区精品| 免费成人结看片| 亚洲女子a中天字幕| 欧美xingq一区二区| 色综合天天综合网天天看片| 日本aⅴ亚洲精品中文乱码| 国产精品美女视频| 欧美一级二级三级蜜桃| 91麻豆国产在线观看| 九色|91porny| 亚洲成人先锋电影| 国产精品色哟哟| 精品国产乱码久久久久久1区2区| 日韩经典一区二区| 国产日产精品一区| 久久成人免费网| 韩国成人福利片在线播放| 欧美专区在线观看一区| 国产高清不卡二三区| 一区二区三区小说| 国产人伦精品一区二区| 日韩亚洲欧美成人一区| 在线中文字幕一区二区| 国产精品88av| 久久精品国产99| 五月婷婷久久综合| 亚洲婷婷综合色高清在线| 国产日产欧美一区二区三区| 日韩欧美你懂的| 欧美一级夜夜爽| 欧美日韩三级在线| 成人av在线观| 成人免费看视频| 国产成人午夜片在线观看高清观看| 婷婷国产在线综合| 亚洲高清视频中文字幕| 亚洲精品视频在线观看网站| 中文字幕在线观看不卡| 日本一区二区成人在线| 国产欧美一二三区| 国产日韩欧美综合一区| 久久久亚洲国产美女国产盗摄| 日韩三级电影网址| 宅男在线国产精品| 欧美一卡二卡三卡四卡| 日韩小视频在线观看专区| 4438x成人网最大色成网站| 欧美狂野另类xxxxoooo| 在线91免费看| 欧美大胆一级视频| 精品久久99ma| 亚洲精品一线二线三线| 久久婷婷一区二区三区| 国产精品系列在线| 亚洲欧美激情小说另类| 亚洲午夜在线电影| 午夜不卡av在线| 国产一区二区主播在线| 丰满岳乱妇一区二区三区| 成人av在线看| 欧美日韩午夜影院| 日韩欧美激情四射| 国产精品久久久久久久久果冻传媒| 国产精品免费观看视频| 亚洲一区二区三区视频在线| 蜜臀国产一区二区三区在线播放| 精品一区二区三区日韩| av中文字幕在线不卡| 欧美丰满美乳xxx高潮www| 精品久久久久久久久久久久久久久 | 国产乱码精品一区二区三区av | 国产欧美日韩激情| 一区二区三区免费观看| 欧美aⅴ一区二区三区视频| 国产传媒日韩欧美成人| 色综合色狠狠综合色| 欧美一区二区三区视频在线 | 国产成人精品一区二区三区网站观看| 成人午夜碰碰视频| 欧美日韩国产高清一区| 久久精品这里都是精品| 亚洲一区二区三区美女| 国产精品一区2区| 欧美日韩激情一区二区三区| 精品国产乱子伦一区| 亚洲天堂中文字幕| 免费欧美高清视频| 日本高清无吗v一区| 久久久欧美精品sm网站| 午夜激情一区二区三区| 99re成人在线| 国产欧美日韩卡一| 视频一区免费在线观看|