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

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

?? remoteserversession.java

?? 一個(gè)java方面的消息訂閱發(fā)送的源碼
?? JAVA
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(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 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 {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人涩涩免费视频| 9色porny自拍视频一区二区| 国产日韩一级二级三级| 在线观看日产精品| 风间由美一区二区av101 | 国产精品你懂的| 91精品在线免费观看| 91在线porny国产在线看| 激情综合网激情| 午夜久久久久久电影| 自拍偷拍亚洲综合| 国产日韩精品一区二区三区 | 777色狠狠一区二区三区| youjizz久久| 国产精品中文字幕一区二区三区| 亚洲大尺度视频在线观看| 成人欧美一区二区三区小说| 日韩精品一区二区三区蜜臀| 欧美三级欧美一级| 91蜜桃免费观看视频| 国产福利一区二区三区视频| 老鸭窝一区二区久久精品| 亚洲成av人片一区二区三区| 中文字幕免费一区| 国产欧美综合在线| 久久综合久久综合亚洲| 日韩一区二区在线看| 欧美高清你懂得| 精品视频在线免费观看| 色香蕉成人二区免费| 一本久久精品一区二区| 色婷婷香蕉在线一区二区| 91麻豆.com| 色综合天天综合网天天看片 | 欧美麻豆精品久久久久久| 91浏览器入口在线观看| 日本韩国一区二区| 91欧美一区二区| 91麻豆高清视频| 欧美性生活影院| 欧美日韩免费电影| 欧美一级高清片| 精品久久免费看| 久久精品亚洲精品国产欧美| 国产欧美一区二区精品性色| 国产欧美日韩精品一区| 国产精品麻豆网站| 亚洲精品国产一区二区三区四区在线| 一区视频在线播放| 亚洲一区二区三区激情| 亚洲成人综合在线| 久久国产精品99久久久久久老狼| 国产综合色精品一区二区三区| 国产黄色精品网站| 91啪亚洲精品| 欧美日本不卡视频| 久久久欧美精品sm网站| 欧美韩国日本一区| 亚洲综合男人的天堂| 蜜臀av性久久久久av蜜臀妖精| 激情另类小说区图片区视频区| 国产成人免费高清| 色久优优欧美色久优优| 56国语精品自产拍在线观看| 精品国产免费人成在线观看| 国产欧美一区二区精品仙草咪| 亚洲免费在线视频一区 二区| 亚洲综合偷拍欧美一区色| 奇米色777欧美一区二区| 国产成人综合视频| 欧美日韩在线精品一区二区三区激情 | 欧美二区三区的天堂| 精品国产1区2区3区| 国产精品少妇自拍| 五月天婷婷综合| 国产suv一区二区三区88区| 色88888久久久久久影院野外| 日韩一区二区在线免费观看| 国产精品三级av在线播放| 午夜精品一区二区三区三上悠亚| 国产麻豆成人传媒免费观看| 99久久伊人久久99| 日韩一区二区三| 国产精品不卡在线| 蜜臀av一区二区在线观看| av不卡在线观看| 精品国产91洋老外米糕| 亚洲日本在线视频观看| 久久不见久久见免费视频7| 一本到不卡免费一区二区| 精品久久久久久久一区二区蜜臀| 亚洲三级在线播放| 激情国产一区二区| 欧美手机在线视频| 中文在线一区二区 | 91亚洲精品乱码久久久久久蜜桃| 欧美一级生活片| 亚洲另类在线一区| 国产99久久久久| 日韩久久精品一区| 亚洲成人动漫精品| 91麻豆免费看| 中文字幕av不卡| 久久www免费人成看片高清| 欧美日韩激情一区| 亚洲精品国产一区二区精华液 | 亚洲麻豆国产自偷在线| 国产高清在线精品| 日韩精品一区在线观看| 亚洲一卡二卡三卡四卡无卡久久| 成人中文字幕电影| 久久精品欧美日韩精品| 久久精品国产久精国产| 欧美日韩国产一级| 亚洲成人精品影院| 在线观看日韩电影| 一区二区三区不卡视频在线观看| 成人国产精品免费观看视频| 久久久久久99精品| 久久超碰97中文字幕| 欧美一级精品大片| 免费不卡在线观看| 日韩精品最新网址| 麻豆国产精品官网| 精品久久一区二区| 狠狠色丁香久久婷婷综合丁香| 91精品国产欧美日韩| 婷婷国产v国产偷v亚洲高清| 欧美日韩中文字幕精品| 亚洲一级不卡视频| 欧美日本乱大交xxxxx| 亚洲福利视频导航| 欧美精品一级二级三级| 五月婷婷综合网| 日韩一区国产二区欧美三区| 免费观看91视频大全| 日韩一区二区三区视频在线观看| 免费观看成人鲁鲁鲁鲁鲁视频| 日韩欧美一区在线观看| 伦理电影国产精品| 亚洲精品一区二区三区精华液 | 看片的网站亚洲| 精品国产一二三| 国产成人亚洲综合a∨婷婷图片| 国产欧美一区二区三区在线看蜜臀| 国产99久久精品| 亚洲婷婷综合色高清在线| 一本色道久久综合狠狠躁的推荐| 亚洲伊人色欲综合网| 欧美夫妻性生活| 精品一区二区在线观看| 国产视频一区不卡| 91在线观看地址| 日韩在线一二三区| 精品国产乱码久久久久久1区2区 | 亚洲免费观看在线视频| 欧美日韩久久久| 国产米奇在线777精品观看| 国产清纯在线一区二区www| 91偷拍与自偷拍精品| 亚洲第一主播视频| 26uuu欧美| 99久久99久久免费精品蜜臀| 亚洲综合色噜噜狠狠| 日韩欧美一级特黄在线播放| 国产乱对白刺激视频不卡| 亚洲欧洲av另类| 69堂国产成人免费视频| 国产精品伊人色| 一区二区三区在线免费视频| 91麻豆精品国产91久久久使用方法| 国产在线精品视频| 亚洲最新视频在线观看| 日韩欧美专区在线| av不卡免费电影| 麻豆视频观看网址久久| 国产精品污网站| 91精品国产综合久久小美女| 成人三级伦理片| 蜜桃精品视频在线| 亚洲女人****多毛耸耸8| 日韩一二三四区| 在线亚洲一区二区| 国产精品一区在线| 亚洲国产日韩a在线播放| 国产欧美日韩在线看| 这里只有精品视频在线观看| a级高清视频欧美日韩| 另类小说视频一区二区| 亚洲精品视频在线观看免费| 亚洲精品在线三区| 欧美性猛交xxxxxx富婆| 国产福利一区在线观看| 日本美女一区二区三区| 亚洲人成网站色在线观看| 久久婷婷色综合| 欧美夫妻性生活| 欧美在线视频全部完| 成人18精品视频| 国产精品一二一区|