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

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

?? remoteserversession.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 2004-2005 (C) Exoffice Technologies Inc. All Rights Reserved.
 *
 * $Id: RemoteServerSession.java,v 1.2 2005/06/13 23:05:45 tanderson Exp $
 */
package org.exolab.jms.server.net;

import java.rmi.RemoteException;
import java.util.List;
import javax.jms.JMSException;
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.orb.UnicastObject;
import org.exolab.jms.server.ServerSession;


/**
 * Implementation of the {@link ServerSession} interface which wraps an {@link
 * ServerSession} to make it remotable.
 *
 * @author <a href="mailto:tma@netspace.net.au">Tim Anderson</a>
 * @version $Revision: 1.2 $ $Date: 2005/06/13 23:05:45 $
 */
public class RemoteServerSession
        extends UnicastObject
        implements ServerSession {

    /**
     * The connection that created this.
     */
    private RemoteServerConnection _connection;

    /**
     * The session to delegate calls to.
     */
    private ServerSession _session;


    /**
     * Construct a new <code>RemoteServerSession</code>.
     *
     * @param orb        the ORB to export this with
     * @param connection the connection that created this
     * @param session    the session to delegate calls to
     * @throws RemoteException if this can't be exported
     */
    public RemoteServerSession(ORB orb, RemoteServerConnection connection,
                               ServerSession session)
            throws RemoteException {
        super(orb, null, true);
        if (connection == null) {
            throw new IllegalArgumentException("Argument 'connection' is null");
        }
        if (session == null) {
            throw new IllegalArgumentException("Argument 'session' is null");
        }
        _connection = connection;
        _session = session;
    }

    /**
     * Close and release any resource allocated to this session.
     *
     * @throws JMSException if the session can't be closed
     */
    public synchronized void close() throws JMSException {
        if (_session != null) {
            try {
                _session.close();
            } finally {
                try {
                    unexportObject();
                } catch (RemoteException exception) {
                    JMSException error = new JMSException(
                            exception.getMessage());
                    error.setLinkedException(exception);
                    throw error;
                } finally {
                    _connection.closed(this);
                    _connection = null;
                    _session = null;
                }
            }
        }
    }

    /**
     * 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 {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产欧美在线观看一区| 99热在这里有精品免费| 日韩午夜中文字幕| 丝袜诱惑亚洲看片| 777xxx欧美| 精品一区二区三区视频在线观看| 精品日本一线二线三线不卡| 国产精品亚洲一区二区三区妖精 | 亚洲精品免费播放| 日本伦理一区二区| 日本最新不卡在线| 国产东北露脸精品视频| 国产在线日韩欧美| 欧美国产日本视频| 色老汉一区二区三区| 五月天激情综合网| 精品国产电影一区二区| 成人av电影在线网| 一区二区三区精品| 日韩欧美中文字幕精品| 福利一区在线观看| 亚洲国产视频一区| 久久人人超碰精品| 色综合色狠狠天天综合色| 爽好多水快深点欧美视频| 亚洲男人的天堂网| 555www色欧美视频| 成人在线视频一区| 亚洲第一在线综合网站| 久久久精品免费网站| 国产欧美日韩不卡免费| 久草中文综合在线| 在线观看成人免费视频| 国产成人福利片| 亚洲人123区| 日韩美女主播在线视频一区二区三区 | 欧美福利电影网| 成人综合激情网| 日韩精品国产欧美| 亚洲欧洲国产日本综合| 日韩欧美久久一区| 在线精品视频免费观看| 国产精品一线二线三线精华| 性做久久久久久久免费看| 国产精品青草综合久久久久99| 欧美日韩高清不卡| 成人黄色免费短视频| 精品一区二区三区在线播放视频| 亚洲免费视频中文字幕| 亚洲精品一区二区精华| 制服丝袜成人动漫| 色噜噜狠狠色综合中国| 国产成人精品一区二| 麻豆视频一区二区| 亚洲国产一区在线观看| 亚洲欧美一区二区视频| 国产欧美一区二区精品忘忧草| 欧美精品少妇一区二区三区| 91免费观看视频| 不卡一区二区中文字幕| 国产精品69毛片高清亚洲| 捆绑紧缚一区二区三区视频| 亚洲最快最全在线视频| 欧美国产激情二区三区| 国产喂奶挤奶一区二区三区| 欧美一级欧美三级| 在线成人av网站| 成人免费精品视频| 中文字幕一区二| 国产午夜亚洲精品理论片色戒| 日韩一区二区三区精品视频| 欧美日韩一区二区欧美激情| 91免费观看视频| 91成人免费在线| 成人免费毛片嘿嘿连载视频| 国产高清在线精品| 国产盗摄精品一区二区三区在线| 国产伦精品一区二区三区免费迷| 久久se精品一区二区| 精品一区二区三区香蕉蜜桃| 国产一区二区三区在线观看免费视频 | 国产1区2区3区精品美女| 国产一区二区三区在线看麻豆| 国产一区在线精品| 国产精品12区| 91在线视频播放| 在线观看91视频| 7777精品伊人久久久大香线蕉超级流畅 | 国产欧美一二三区| 中文字幕精品一区| 亚洲人成在线观看一区二区| 亚洲视频免费观看| 亚洲国产一区二区三区青草影视 | 中文字幕一区二区视频| 国产精品福利在线播放| 亚洲精品久久久蜜桃| 日韩电影免费在线| 狠狠色丁香九九婷婷综合五月| 国产999精品久久久久久| 成人av在线播放网址| 在线精品视频小说1| 69久久99精品久久久久婷婷| 久久综合色8888| 亚洲三级在线观看| 日韩成人精品视频| 国产一区二区不卡| 色八戒一区二区三区| 91精品国产综合久久香蕉麻豆| 91精品欧美久久久久久动漫| 久久天天做天天爱综合色| 国产精品美女久久福利网站| 亚洲电影中文字幕在线观看| 裸体一区二区三区| 成人国产在线观看| 337p亚洲精品色噜噜狠狠| 久久久久亚洲综合| 免费人成黄页网站在线一区二区| 国产精品18久久久久久久久久久久| 99精品视频一区| 欧美一级在线视频| 亚洲欧美自拍偷拍| 美女视频一区二区| 一本色道久久综合亚洲91| 精品国产欧美一区二区| 一区二区三区四区蜜桃| 国产精品一品视频| 欧美日韩国产综合草草| 中文一区在线播放| 日本欧美韩国一区三区| 91麻豆swag| 欧美激情一二三区| 久久99久久久久| 欧美日韩一区不卡| 久久精品人人做人人综合 | 日韩一区二区三区视频| 亚洲人成7777| 成人爽a毛片一区二区免费| 91精品国产手机| 亚洲综合图片区| 99久久er热在这里只有精品15 | 亚洲色图在线看| 国产精品综合二区| 欧美一卡二卡在线观看| 午夜私人影院久久久久| 91影院在线观看| 中文字幕在线一区免费| 国产在线国偷精品产拍免费yy | 国产精品一区二区久久不卡| 91麻豆精品国产无毒不卡在线观看 | 国产精品久久久久久久岛一牛影视| 99久久久精品| 欧美成人一区二区三区| 亚洲国产精品一区二区www在线 | 午夜精品久久久久| 色又黄又爽网站www久久| 国产精品久久久久一区二区三区共| 极品尤物av久久免费看| 日韩午夜激情视频| 香蕉乱码成人久久天堂爱免费| 色欧美乱欧美15图片| 国产精品国产a级| 成人h动漫精品| 国产精品久久精品日日| 成人免费看片app下载| 中文字幕电影一区| 成熟亚洲日本毛茸茸凸凹| 久久日韩精品一区二区五区| 久久www免费人成看片高清| 久久综合视频网| 国产精品一区在线| 国产清纯在线一区二区www| 麻豆一区二区99久久久久| 欧美变态口味重另类| 蜜桃精品在线观看| 久久免费视频一区| 国产成人免费9x9x人网站视频| 久久精品亚洲精品国产欧美kt∨| 国产精品影视网| 中文字幕在线不卡视频| 91免费版pro下载短视频| 一级做a爱片久久| 95精品视频在线| 亚洲激情在线播放| 欧美日韩国产在线播放网站| 捆绑调教美女网站视频一区| 国产亚洲成aⅴ人片在线观看| 懂色av一区二区三区免费看| 国产精品久久久久久久蜜臀| 波波电影院一区二区三区| 亚洲欧美成aⅴ人在线观看 | 91成人国产精品| 日本欧美一区二区| 国产色婷婷亚洲99精品小说| aa级大片欧美| 日本午夜精品一区二区三区电影| 久久亚洲春色中文字幕久久久| 99在线精品观看| 欧美国产精品专区| www.日韩av| 午夜激情综合网|