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

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

?? jmssessionstubimpl.java

?? 一個java方面的消息訂閱發送的源碼
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/**
 * 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: JmsSessionStubImpl.java,v 1.3 2005/05/24 13:36:38 tanderson Exp $
 */
package org.exolab.jms.client.net;

import java.rmi.RemoteException;
import java.util.List;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.transaction.xa.XAException;
import javax.transaction.xa.Xid;

import org.exolab.jms.client.JmsDestination;
import org.exolab.jms.client.JmsMessageListener;
import org.exolab.jms.client.JmsQueue;
import org.exolab.jms.client.JmsTopic;
import org.exolab.jms.message.MessageImpl;
import org.exolab.jms.net.orb.ORB;
import org.exolab.jms.net.proxy.Proxy;
import org.exolab.jms.server.ServerSession;


/**
 * Wraps an {@link ServerSession}.
 *
 * @author <a href="mailto:jima@exoffice.com">Jim Alateras</a>
 * @version $Revision: 1.3 $ $Date: 2005/05/24 13:36:38 $
 */
public class JmsSessionStubImpl
        implements ServerSession, JmsMessageListener {

    /**
     * This is the message listener for JMS messages. The MessageListener is
     * then responsible for delivering it to the actual consumer.
     */
    private JmsMessageListener _listener = null;

    /**
     * The ORB to export this with.
     */
    private ORB _orb;

    /**
     * The reference to the server session.
     */
    private ServerSession _session = null;


    /**
     * Construct a new <code>JmsSessionStubImpl</code>.
     *
     * @param session     the reference to the server session
     * @param orb         the ORB to export this with
     * @param uri         the URI to export this on
     * @param principal   the security principal. May be <code>null</code>
     * @param credentials the security credentials. May be <code>null</code>
     */
    protected JmsSessionStubImpl(ServerSession session, ORB orb,
                                 String uri, String principal,
                                 String credentials)
            throws RemoteException {
        if (session == null) {
            throw new IllegalArgumentException("Argument 'session' is null");
        }
        if (orb == null) {
            throw new IllegalArgumentException("Argument 'orb' is null");
        }
        _session = session;
        _orb = orb;
        Proxy proxy = orb.exportObjectTo(this, uri, principal, credentials);
        _session.setMessageListener((JmsMessageListener) proxy);
    }

    /**
     * Close and release any resource allocated to this session.
     *
     * @throws JMSException for any JMS error
     */
    public void close() throws JMSException {
        try {
            _session.close();
            _orb.unexportObject(this);
            _session = null;
            _listener = null;
        } catch (RemoteException exception) {
            rethrow(exception);
        }
    }

    /**
     * Acknowledge that a message has been processed.
     *
     * @param consumerId the identity of the consumer performing the ack
     * @param messageId  the message identifier
     * @throws JMSException for any error
     */
    public void acknowledgeMessage(long consumerId, String messageId)
            throws JMSException {
        _session.acknowledgeMessage(consumerId, messageId);
    }

    /**
     * Send a message.
     *
     * @param message the message to send
     * @throws JMSException for any error
     */
    public void send(MessageImpl message) throws JMSException {
        _session.send(message);
    }

    /**
     * Send a set of messages.
     *
     * @param messages a list of <code>MessageImpl</code> instances
     * @throws JMSException for any JMS error
     */
    public void send(List messages) throws JMSException {
        _session.send(messages);
    }

    /**
     * Return the next available message to the specified consumer.
     * <p/>
     * The <code>wait</code> parameter indicates how many milliseconds to wait
     * for a message before returning. If <code>wait</code> is <code>0</code>
     * then do not wait. If <code>wait</code> is <code>-1</code> then wait
     * indefinitely for the next message.
     *
     * @param consumerId the consumer identifier
     * @param wait       number of milliseconds to wait
     * @return the next message or <code>null</code>
     * @throws JMSException for any JMS error
     */
    public MessageImpl receive(long consumerId, long wait)
            throws JMSException {
        return _session.receive(consumerId, wait);
    }

    /**
     * Browse up to count messages.
     *
     * @param consumerId the consumer identifier
     * @param count      the maximum number of messages to receive
     * @return a list of {@link MessageImpl} instances
     * @throws JMSException for any JMS error
     */
    public List browse(long consumerId, int count) throws JMSException {
        return _session.browse(consumerId, count);
    }

    /**
     * Create a new message consumer.
     *
     * @param destination the destination to consume messages from
     * @param selector    the message selector. May be <code>null</code>
     * @param noLocal     if true, and the destination is a topic, inhibits the
     *                    delivery of messages published by its own connection.
     *                    The behavior for <code>noLocal</code> is not specified
     *                    if the destination is a queue.
     * @return the identifty of the message consumer
     * @throws JMSException for any JMS error
     */
    public long createConsumer(JmsDestination destination, String selector,
                               boolean noLocal) throws JMSException {
        return _session.createConsumer(destination, selector, noLocal);
    }

    /**
     * Create a new durable consumer. Durable consumers may only consume from
     * non-temporary <code>Topic</code> destinations.
     *
     * @param topic    the non-temporary <code>Topic</code> to subscribe to
     * @param name     the name used to identify this subscription
     * @param selector only messages with properties matching the message
     *                 selector expression are delivered.  A value of null or an
     *                 empty string indicates that there is no message selector
     *                 for the message consumer.
     * @param noLocal  if set, inhibits the delivery of messages published by
     *                 its own connection
     * @return the identity of the durable consumer
     * @throws JMSException for any JMS error
     */
    public long createDurableConsumer(JmsTopic topic, String name,
                                      String selector, boolean noLocal)
            throws JMSException {
        return _session.createDurableConsumer(topic, name, selector, noLocal);
    }

    /**
     * Create a queue browser for this session. This allows clients to browse a
     * queue without removing any messages.
     *
     * @param queue    the queue to browse
     * @param selector the message selector. May be <code>null</code>
     * @return the identity of the queue browser
     * @throws JMSException for any JMS error
     */
    public long createBrowser(JmsQueue queue, String selector)
            throws JMSException {
        return _session.createBrowser(queue, selector);
    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产电影一区二区| 2023国产一二三区日本精品2022| 粉嫩绯色av一区二区在线观看| 日韩精品每日更新| 欧美一级淫片007| 精品制服美女久久| 久久精品免费在线观看| 色综合天天视频在线观看| 亚洲自拍偷拍九九九| 91精品国产综合久久久久久久| 久久99最新地址| 亚洲一区二区中文在线| 亚洲欧洲三级电影| 欧美区在线观看| 国产成人啪免费观看软件| 在线播放日韩导航| 成人av手机在线观看| 欧美一区二区三区视频| 欧美一卡2卡3卡4卡| 日韩视频免费观看高清完整版 | 精品免费视频一区二区| 成人黄色免费短视频| 成人精品免费看| 日本午夜精品视频在线观看| 日韩理论在线观看| 久久精品亚洲一区二区三区浴池| 国产性做久久久久久| 亚洲天堂网中文字| 亚洲风情在线资源站| 成人免费一区二区三区在线观看| 亚洲国产aⅴ成人精品无吗| 蜜臀av一级做a爰片久久| 91原创在线视频| 91精品国产欧美日韩| 91亚洲精品乱码久久久久久蜜桃| 色婷婷激情综合| 日韩欧美国产午夜精品| 在线观看日韩av先锋影音电影院| 国产福利一区二区三区在线视频| 91蝌蚪porny| 欧美白人最猛性xxxxx69交| 国产精品久久久久影院亚瑟| 久久久久9999亚洲精品| 2023国产精品自拍| 亚洲精选免费视频| 亚洲精品五月天| 国产一区二区三区| 国产在线一区二区综合免费视频| 久久精品国产一区二区三| 91小视频在线免费看| 久久久久久久久久久久久久久99| 亚洲柠檬福利资源导航| 色悠久久久久综合欧美99| 国产伦精品一区二区三区免费迷 | 久久精品噜噜噜成人88aⅴ| 国产精品亚洲第一| 肉肉av福利一精品导航| 大白屁股一区二区视频| 日韩午夜三级在线| 亚洲国产美女搞黄色| 成人h版在线观看| 欧美成人精品3d动漫h| 亚洲va在线va天堂| 日韩av电影天堂| 91免费在线看| 亚洲美女在线国产| 欧美日韩在线免费视频| 精品一区二区三区影院在线午夜 | 国产一区二区三区免费看| 欧美电影在哪看比较好| 美女视频免费一区| 日本高清成人免费播放| 欧美综合色免费| 亚洲色欲色欲www| 99综合电影在线视频| 色一情一伦一子一伦一区| 国产色一区二区| 国产成人综合亚洲网站| 久久久国产精品不卡| 久久国产成人午夜av影院| 欧美一级艳片视频免费观看| 三级不卡在线观看| 日韩午夜在线影院| 蜜桃精品视频在线| 欧美mv日韩mv国产| 国产乱色国产精品免费视频| 久久久精品一品道一区| 国产高清精品在线| 国产精品色婷婷| 婷婷亚洲久悠悠色悠在线播放| 国产精品亚洲第一区在线暖暖韩国| 欧美v国产在线一区二区三区| 麻豆成人91精品二区三区| 欧美mv和日韩mv国产网站| 韩日av一区二区| 国产精品免费aⅴ片在线观看| 成人免费黄色大片| 亚洲精品视频在线| 欧美日韩精品综合在线| 免费成人av在线播放| 欧美亚一区二区| 中文字幕一区二区三区在线观看| 91性感美女视频| 亚洲电影一区二区三区| 91精品国产高清一区二区三区| 久久草av在线| 中文字幕av一区二区三区高| 久久精品国产第一区二区三区| 久久综合色婷婷| 99久久99久久久精品齐齐| 久久精品视频免费观看| 色综合久久中文字幕| 免费精品99久久国产综合精品| 国产日韩精品一区二区浪潮av| 裸体健美xxxx欧美裸体表演| 欧美国产一区视频在线观看| 欧美在线色视频| 国产精品一品二品| 亚洲h精品动漫在线观看| 国产亚洲欧洲997久久综合 | 欧美精品久久99| 国产91丝袜在线观看| 亚洲国产日日夜夜| 国产欧美综合在线| 91精品久久久久久久久99蜜臂| 成人av免费在线播放| 蜜臂av日日欢夜夜爽一区| 综合精品久久久| 精品伦理精品一区| 在线观看国产日韩| 风间由美一区二区三区在线观看 | 91亚洲精华国产精华精华液| 欧美96一区二区免费视频| 最新不卡av在线| 2022国产精品视频| 欧美精品色一区二区三区| 欧美精品在欧美一区二区少妇| 99久久精品免费看国产免费软件| 免费亚洲电影在线| 亚洲国产美女搞黄色| 亚洲另类春色国产| 最新热久久免费视频| 欧美极品少妇xxxxⅹ高跟鞋| 欧美一级xxx| 欧美精品第一页| 欧美日本一区二区在线观看| 91首页免费视频| 99riav一区二区三区| 懂色av一区二区三区免费观看| 国产一区二区福利| 狠狠色综合日日| 国产一区日韩二区欧美三区| 青青草成人在线观看| 日韩写真欧美这视频| 成人午夜电影久久影院| 国产黄色91视频| 国产精品1区2区3区| 国产精品一线二线三线| 久久99精品久久久久久动态图 | 欧美成人一区二区三区| 3d动漫精品啪啪一区二区竹菊| 欧美日韩久久久| 91精品国产色综合久久| 日韩欧美另类在线| 精品国产一区二区三区久久久蜜月 | 久久奇米777| 国产拍揄自揄精品视频麻豆| 一区二区三区精密机械公司| 一道本成人在线| 日本高清不卡视频| 欧美精品 国产精品| 欧美电视剧在线观看完整版| 2021中文字幕一区亚洲| 国产精品第五页| 亚洲国产欧美在线人成| 蜜桃av一区二区三区| 国产成人啪免费观看软件 | 99re热这里只有精品免费视频 | 亚洲综合免费观看高清完整版在线| 一区二区三区免费观看| 三级在线观看一区二区| 国产乱人伦偷精品视频免下载| 成人av一区二区三区| 欧美视频在线观看一区二区| 日韩亚洲欧美中文三级| 国产亚洲欧美一级| 亚洲日本中文字幕区| 日韩激情视频在线观看| 国产乱码精品一区二区三区五月婷| 成人avav在线| 欧美一级欧美三级在线观看| 国产欧美日韩不卡| 亚洲国产色一区| 国产99久久久国产精品潘金| 在线看不卡av| 国产日韩欧美精品综合| 日韩不卡免费视频| 91麻豆.com| 久久综合给合久久狠狠狠97色69| 亚洲欧美一区二区三区极速播放|