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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jmsadminconnectionimpl.java

?? 一個(gè)java方面的消息訂閱發(fā)送的源碼
?? JAVA
字號(hào):
/**
 * 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 2000-2005 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: JmsAdminConnectionImpl.java,v 1.2 2005/05/03 13:57:11 tanderson Exp $
 */
package org.exolab.jms.administration.net;

import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.HashMap;
import java.util.Map;
import java.util.Vector;
import javax.jms.JMSException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.exolab.jms.administration.AdminConnection;
import org.exolab.jms.administration.JmsAdminServerIfc;
import org.exolab.jms.client.net.SharedORB;
import org.exolab.jms.net.orb.ORB;
import org.exolab.jms.net.registry.Registry;
import org.exolab.jms.server.net.RemoteJmsAdminConnectionIfc;
import org.exolab.jms.server.net.RemoteJmsAdminServerIfc;


/**
 * This class is repsonsible for an admin connection to the RMI server
 *
 * @author <a href="mailto:mourikis@intalio.com">Jim Mourikis</a>
 * @version $Revision: 1.2 $ $Date: 2005/05/03 13:57:11 $
 * @see org.exolab.jms.administration.AdminConnectionFactory
 */
public class JmsAdminConnectionImpl
        implements JmsAdminServerIfc, AdminConnection {

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

    /**
     * The admin connection.
     */
    private RemoteJmsAdminConnectionIfc _connection;


    /**
     * Construct a new <code>JmsAdminConnectionImpl</code>
     *
     * @param url      the server URI
     * @param username the client's username
     * @param password the client's password
     */
    public JmsAdminConnectionImpl(String url, String username, String password)
            throws JMSException {
        Map properties = new HashMap();
        properties.put(ORB.PROVIDER_URI, url);
        if (username != null) {
            properties.put(ORB.SECURITY_PRINCIPAL, username);
        }
        if (password != null) {
            properties.put(ORB.SECURITY_CREDENTIALS, password);
        }

        Registry registry = null;
        try {
            _orb = SharedORB.getInstance();
            registry = _orb.getRegistry(properties);
        } catch (RemoteException exception) {
            JMSException error = new JMSException(
                    "Failed to get registry service for URL: " + url);
            error.setLinkedException(exception);
            throw error;
        }

        try {
            RemoteJmsAdminServerIfc admin =
                    (RemoteJmsAdminServerIfc) registry.lookup("admin");
            _connection = admin.createConnection(username, password);
        } catch (NotBoundException exception) {
            throw new JMSException("Administration server is not bound in the registry for "
                                   + "URL: " + url);
        } catch (RemoteException exception) {
            JMSException error = new JMSException("Failed to lookup OpenJMS administration server at URL: "
                                                  + url);
            error.setLinkedException(exception);
            throw error;
        }
    }

    // implementation of JmsAdminServerIfc.addDurableConsumer
    public boolean addDurableConsumer(String topic, String name)
            throws JMSException {
        boolean result = false;
        try {
            result = _connection.addDurableConsumer(topic, name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.removeDurableConsumer
    public boolean removeDurableConsumer(String name) throws JMSException {
        boolean result = false;
        try {
            result = _connection.removeDurableConsumer(name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.durableConsumerExists
    public boolean durableConsumerExists(String name) throws JMSException {
        boolean result = false;
        try {
            result = _connection.durableConsumerExists(name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.getDurableConsumers
    public Vector getDurableConsumers(String topic) throws JMSException {
        Vector result = null;
        try {
            result = _connection.getDurableConsumers(topic);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.unregisterConsumer
    public boolean unregisterConsumer(String name) throws JMSException {
        boolean result = false;
        try {
            result = _connection.unregisterConsumer(name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.isConnected
    public boolean isConnected(String name) throws JMSException {
        boolean result = false;
        try {
            result = _connection.isConnected(name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.addDestination
    public boolean addDestination(String destination, Boolean queue)
            throws JMSException {
        boolean result = false;
        try {
            result = _connection.addDestination(destination, queue);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.removeDestination
    public boolean removeDestination(String name) throws JMSException {
        boolean result = false;
        try {
            result = _connection.removeDestination(name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.destinationExists
    public boolean destinationExists(String name) throws JMSException {
        boolean result = false;
        try {
            result = _connection.destinationExists(name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.getAllDestinations
    public Vector getAllDestinations() throws JMSException {
        Vector result = null;
        try {
            result = _connection.getAllDestinations();
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.getDurableConsumerMessageCount
    public int getDurableConsumerMessageCount(String topic, String name)
            throws JMSException {
        int result = 0;
        try {
            result = _connection.getDurableConsumerMessageCount(topic, name);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.getDurableConsumerMessageCount
    public int getQueueMessageCount(String queue) throws JMSException {
        int result = 0;
        try {
            result = _connection.getQueueMessageCount(queue);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.purgeMessages
    public int purgeMessages() throws JMSException {
        int result = 0;
        try {
            result = _connection.purgeMessages();
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.stopServer
    public void stopServer() throws JMSException {
        try {
            _connection.stopServer();
        } catch (Exception exception) {
            raise(exception);
        }
    }

    // implementation of JmsAdminServerIfc.close
    public void close() {
    }

    // implementation of JmsAdminServerIfc.addUser
    public boolean addUser(String username, String password)
            throws JMSException {
        boolean result = false;
        try {
            result = _connection.addUser(username, password);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.getAllUsers
    public Vector getAllUsers() throws JMSException {
        Vector result = null;
        try {
            result = _connection.getAllUsers();
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.removeUser
    public boolean removeUser(String username)
            throws JMSException {
        boolean result = false;
        try {
            result = _connection.removeUser(username);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    // implementation of JmsAdminServerIfc.changePassword
    public boolean changePassword(String username, String password)
            throws JMSException {
        boolean result = false;
        try {
            result = _connection.changePassword(username, password);
        } catch (Exception exception) {
            raise(exception);
        }
        return result;
    }

    private void raise(Exception exception) throws JMSException {
        if (exception instanceof JMSException) {
            throw (JMSException) exception;
        } else {
            JMSException error = new JMSException(exception.getMessage());
            error.setLinkedException(exception);
            throw error;
        }
    }

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人永久aaa| 人禽交欧美网站| 成人高清伦理免费影院在线观看| 久久久久国产成人精品亚洲午夜| 精品亚洲porn| 亚洲国产精品v| 91农村精品一区二区在线| 亚洲男人电影天堂| 在线播放欧美女士性生活| 奇米影视7777精品一区二区| www久久久久| 北岛玲一区二区三区四区| 亚洲六月丁香色婷婷综合久久| 欧美在线视频不卡| 久久99久久99| 日韩美女久久久| 欧美二区三区91| 国产精品一区二区久激情瑜伽 | 国产在线视频一区二区三区| 国产亚洲人成网站| 91在线播放网址| 青椒成人免费视频| 国产精品乱码一区二三区小蝌蚪| 欧美性受xxxx| 国产一区二区三区黄视频| 亚洲男人的天堂在线观看| 欧美一区二区三区免费| 成人激情黄色小说| 首页亚洲欧美制服丝腿| 精品av久久707| 91免费在线视频观看| 九九九精品视频| 一区二区三区在线播| 欧美tickling挠脚心丨vk| 99国产欧美久久久精品| 免费成人av在线播放| 综合婷婷亚洲小说| 日韩欧美成人午夜| 一本在线高清不卡dvd| 精品影视av免费| 亚洲国产成人tv| 国产欧美一区二区精品婷婷| 欧美美女激情18p| 成人av网站在线观看| 亚洲bt欧美bt精品| 中文字幕乱码日本亚洲一区二区 | 日韩一级视频免费观看在线| 成av人片一区二区| 麻豆成人久久精品二区三区小说| 中文字幕一区三区| 久久亚洲一级片| 日韩一区二区三区电影在线观看| 色香色香欲天天天影视综合网| 国产精品白丝jk白祙喷水网站| 亚洲成精国产精品女| 亚洲视频狠狠干| 欧美国产禁国产网站cc| 精品国产伦一区二区三区观看方式| 欧美视频一二三区| 91免费精品国自产拍在线不卡| 国产精品一二三四| 另类小说图片综合网| 午夜天堂影视香蕉久久| 亚洲午夜精品一区二区三区他趣| 中文成人av在线| 国产欧美精品国产国产专区 | 国产高清在线精品| 精品一区二区三区日韩| 免费成人在线网站| 免费观看成人鲁鲁鲁鲁鲁视频| 亚洲不卡在线观看| 亚洲一区在线播放| 亚洲同性同志一二三专区| 国产精品高潮呻吟| 中文字幕亚洲欧美在线不卡| 国产三级久久久| 国产欧美日本一区二区三区| 2021久久国产精品不只是精品| 日韩欧美成人午夜| 精品成人在线观看| 26uuu国产电影一区二区| 久久亚洲一级片| 亚洲国产岛国毛片在线| 国产精品美日韩| 亚洲视频狠狠干| 亚洲一区二区av电影| 亚洲综合色成人| 奇米色777欧美一区二区| 奇米一区二区三区| 国产麻豆精品在线| 成人av电影在线观看| 在线观看亚洲精品视频| 欧美男人的天堂一二区| 色琪琪一区二区三区亚洲区| 在线观看国产精品网站| 欧美日韩精品专区| 日韩免费性生活视频播放| 久久人人爽爽爽人久久久| 欧美高清在线视频| 亚洲免费观看高清在线观看| 夜夜揉揉日日人人青青一国产精品| 亚洲成a人v欧美综合天堂下载| 免费人成黄页网站在线一区二区| 乱一区二区av| 成人动漫在线一区| 欧美午夜免费电影| 精品精品国产高清a毛片牛牛 | 国产成人av电影在线观看| aa级大片欧美| 欧美精品久久一区| 国产日产欧美精品一区二区三区| 亚洲色图色小说| 青青青伊人色综合久久| 成人综合婷婷国产精品久久蜜臀| 一本久久精品一区二区| 在线播放中文字幕一区| 国产婷婷色一区二区三区四区| 亚洲综合无码一区二区| 国内成+人亚洲+欧美+综合在线| 不卡一卡二卡三乱码免费网站| 欧美精品免费视频| 国产亚洲美州欧州综合国| 亚洲影视在线观看| 国产精品1区2区3区| 欧美在线不卡一区| 国产婷婷色一区二区三区在线| 亚洲成人你懂的| 成年人国产精品| 日韩欧美一区中文| 亚洲综合自拍偷拍| 国产风韵犹存在线视精品| 欧美日韩中字一区| 国产精品丝袜91| 久久电影网站中文字幕 | 欧美片在线播放| 《视频一区视频二区| 久久丁香综合五月国产三级网站| 色8久久精品久久久久久蜜| 久久日韩粉嫩一区二区三区| 丝袜亚洲另类欧美综合| 99精品国产99久久久久久白柏| 久久久亚洲综合| 人禽交欧美网站| 欧美日韩国产一区| 日韩毛片高清在线播放| 国产mv日韩mv欧美| 精品粉嫩aⅴ一区二区三区四区| 五月激情丁香一区二区三区| 成人黄色小视频| 国产亚洲一区二区三区| 久久精品免费看| 欧美精品日韩综合在线| 亚洲成人综合视频| 91久久精品网| 亚洲欧美日韩一区二区| 成人av先锋影音| 国产精品国产三级国产aⅴ无密码| 激情都市一区二区| 日韩欧美精品在线| 蜜臀av一级做a爰片久久| 欧美无乱码久久久免费午夜一区 | 成人av在线观| 国产精品久久久久一区二区三区 | 欧美体内she精视频| 亚洲欧美一区二区久久| 99在线精品观看| 亚洲欧美日韩久久| 色天天综合色天天久久| 亚洲女人****多毛耸耸8| 色一区在线观看| 亚洲一级二级三级| 在线国产电影不卡| 亚洲成av人在线观看| 欧美日韩美少妇| 蜜桃视频一区二区三区| 日韩手机在线导航| 精品午夜一区二区三区在线观看| 日韩一区二区高清| 国产在线国偷精品免费看| 精品成人佐山爱一区二区| 国产大陆精品国产| 中文字幕一区二区5566日韩| 91久久线看在观草草青青| 亚洲国产精品欧美一二99| 欧美一区中文字幕| 国模套图日韩精品一区二区| 国产三级精品三级在线专区| k8久久久一区二区三区 | 日韩成人一级大片| 日韩精品一区二区三区四区视频| 韩国中文字幕2020精品| 国产精品免费视频观看| 91久久精品国产91性色tv| 丝袜亚洲另类丝袜在线| 精品国产91乱码一区二区三区| 国产一区视频在线看| 国产精品二区一区二区aⅴ污介绍| 欧美在线小视频| 黄网站免费久久| 亚洲人成人一区二区在线观看|