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

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

?? requestor.java

?? Jencks是一個輕量級的JCA容器。它可以輕松部署到Spring中以提供消息驅動的POJOs.此外Jencks通過使用類似于JMS,JAX-RPC,JBI與JCA CCI的API來提供對inboun
?? JAVA
字號:
/** *  * Copyright 2005 LogicBlaze, Inc. *  * Licensed under the Apache License, Version 2.0 (the "License");  * you may not use this file except in compliance with the License.  * You may obtain a copy of the License at  *  * http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  * See the License for the specific language governing permissions and  * limitations under the License.  *  **/package org.jencks;import javax.jms.Destination;import javax.jms.JMSException;import javax.jms.Message;import javax.jms.MessageConsumer;import javax.jms.MessageProducer;import javax.jms.Session;import javax.jms.TemporaryQueue;import javax.jms.TemporaryTopic;/** * A helper class for performing remote method invocations over JMS. * This class is a polymorphic version of the {@link javax.jms.QueueRequestor} and {@link javax.jms.TopicRequestor} * that ship with the JMS API which take advantage of the polymorphism of JMS 1.1 and which also supports timeouts. * * @version $Revision: 1.1.1.1 $ */public class Requestor {    private Session session;    private Destination temporaryDestination;    private MessageProducer sender;    private MessageConsumer receiver;    private long maximumTimeout = 20000L;    /**     * Constructor for the <CODE>Requestor</CODE> class.     * <p/>     * <P>This implementation assumes the session parameter to be non-transacted,     * with a delivery mode of either <CODE>AUTO_ACKNOWLEDGE</CODE> or     * <CODE>DUPS_OK_ACKNOWLEDGE</CODE>.     *     * @param session     the <CODE>Session</CODE> the queue belongs to     * @param destination the destination to perform the request/reply call on     * @throws javax.jms.JMSException if the JMS provider fails to create the     *                                <CODE>Requestor</CODE> due to some internal     *                                error.     * @throws javax.jms.InvalidDestinationException     *                                if an invalid queue is specified.     */    public Requestor(Session session, Destination destination) throws JMSException {        this.session = session;        temporaryDestination = createTemporaryDestination(session);        sender = session.createProducer(destination);        receiver = session.createConsumer(temporaryDestination);    }    /**     * Sends a request and waits for a reply. The temporary queue is used for     * the <CODE>JMSReplyTo</CODE> destination, and only one reply per request     * is expected.     *     * @param message the message to send     * @return the reply message     * @throws javax.jms.JMSException if the JMS provider fails to complete the     *                                request due to some internal error.     */    public Message request(Message message) throws JMSException {        message.setJMSReplyTo(temporaryDestination);        sender.send(message);        long timeout = getMaximumTimeout();        if (timeout > 0) {            return receiver.receive(timeout);        }        else {            return receiver.receive();        }    }    /**     * Sends a request and waits for a reply up to a maximum timeout. The temporary queue is used for     * the <CODE>JMSReplyTo</CODE> destination, and only one reply per request     * is expected.     *     * @param message the message to send     * @return the reply message     * @throws javax.jms.JMSException if the JMS provider fails to complete the     *                                request due to some internal error.     */    public Message request(Message message, long timeout) throws JMSException {        message.setJMSReplyTo(temporaryDestination);        sender.send(message);        return receiver.receive(timeout);    }    /**     * Closes the <CODE>Requestor</CODE> and its session.     * <p/>     * <P>Since a provider may allocate some resources on behalf of a     * <CODE>Requestor</CODE> outside the Java virtual machine, clients     * should close them when they     * are not needed. Relying on garbage collection to eventually reclaim     * these resources may not be timely enough.     * <p/>     * <P>Note that this method closes the <CODE>Session</CODE> object     * passed to the <CODE>Requestor</CODE> constructor.     *     * @throws javax.jms.JMSException if the JMS provider fails to close the     *                                <CODE>Requestor</CODE> due to some internal     *                                error.     */    public void close() throws JMSException {        // producer and consumer created by constructor are implicitly closed.        session.close();        if (temporaryDestination instanceof TemporaryQueue) {            ((TemporaryQueue) temporaryDestination).delete();        }        else if (temporaryDestination instanceof TemporaryTopic) {            ((TemporaryTopic) temporaryDestination).delete();        }    }    public long getMaximumTimeout() {        return maximumTimeout;    }    /**     * Sets the maximum default timeout used for remote requests. If set to <= 0 then     * the timeout is ignored.     *     * @param maximumTimeout     */    public void setMaximumTimeout(long maximumTimeout) {        this.maximumTimeout = maximumTimeout;    }    protected TemporaryQueue createTemporaryDestination(Session session) throws JMSException {        return session.createTemporaryQueue();    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久婷婷色综合| 91网站视频在线观看| gogo大胆日本视频一区| 在线观看91视频| 亚洲精品在线电影| 亚洲视频精选在线| 日韩一区二区三区四区| 国产亚洲美州欧州综合国| 一区二区三区在线视频观看| 欧美aⅴ一区二区三区视频| 国产一区二区三区在线观看免费视频| 国产一区二区三区免费看| 国产成人午夜精品5599 | 色94色欧美sute亚洲线路一久| 色久优优欧美色久优优| 91精品久久久久久久91蜜桃| 久久久99久久| 亚洲精品国产精品乱码不99| 蜜桃久久精品一区二区| 国产成人av一区二区三区在线| 日本大香伊一区二区三区| 538prom精品视频线放| 久久久久久亚洲综合| 亚洲毛片av在线| 久久99精品久久久久久久久久久久 | 国产日韩欧美一区二区三区乱码 | 亚洲va在线va天堂| 久久超碰97中文字幕| proumb性欧美在线观看| 欧美一区二区三区男人的天堂| 久久精品这里都是精品| 亚洲免费观看高清完整版在线观看熊| 日本美女一区二区三区| a级精品国产片在线观看| 91精品国产福利| 欧美国产成人在线| 日韩avvvv在线播放| a在线欧美一区| 精品一区二区在线观看| 色婷婷精品大在线视频| 久久午夜老司机| 五月激情丁香一区二区三区| 东方aⅴ免费观看久久av| 宅男在线国产精品| 亚洲视频免费在线观看| 国产综合色产在线精品| 99精品视频在线观看| 日韩欧美在线1卡| 亚洲精品乱码久久久久久黑人| 国产亚洲美州欧州综合国| 国产精品国产自产拍高清av王其 | 欧美午夜精品电影| 26uuu色噜噜精品一区二区| 亚洲男人的天堂在线观看| 激情综合一区二区三区| 91在线国产观看| 久久亚洲春色中文字幕久久久| 亚洲成a人片在线观看中文| 波多野结衣一区二区三区| 精品国产免费人成在线观看| 亚洲午夜视频在线| 国产精一区二区三区| 日韩一区二区三区观看| 一区二区三区中文字幕| 成人久久视频在线观看| 久久精品一区二区三区不卡牛牛| 日韩1区2区3区| 欧美日韩久久久| 亚洲一区二区成人在线观看| 99久久婷婷国产综合精品| 欧美国产日本韩| 国产一区二区三区四区五区美女| 日韩欧美一级片| 午夜视频久久久久久| 在线免费视频一区二区| 成人欧美一区二区三区黑人麻豆| 国产麻豆91精品| 久久婷婷一区二区三区| 国产麻豆精品在线| 久久奇米777| 国产精品原创巨作av| 久久精品视频在线免费观看| 久久久精品黄色| 精品伊人久久久久7777人| 欧美一二三四区在线| 青青草国产精品97视觉盛宴| 538prom精品视频线放| 日韩不卡免费视频| 正在播放亚洲一区| 蜜桃免费网站一区二区三区| 欧美成人猛片aaaaaaa| 精品一区二区久久久| 久久久蜜桃精品| 国产成人三级在线观看| 日本一区二区三区四区| 成人性生交大片免费看视频在线 | 免费高清成人在线| 欧美一个色资源| 日本欧美在线观看| 欧美色综合影院| 美女被吸乳得到大胸91| 欧美成人a∨高清免费观看| 国产乱一区二区| 国产精品护士白丝一区av| 91啪亚洲精品| 五月婷婷综合网| 欧美xxxxxxxx| 成人av在线播放网站| 一区二区三区在线视频免费观看| 欧美三级一区二区| 蜜臀精品久久久久久蜜臀| 久久综合九色欧美综合狠狠| 成人性视频免费网站| 亚洲在线观看免费| 日韩一二在线观看| 国产成人免费在线观看不卡| ●精品国产综合乱码久久久久| 欧美丝袜自拍制服另类| 精品一区二区免费视频| 亚洲国产高清在线观看视频| 在线一区二区三区四区五区| 日韩激情一二三区| 久久久99精品免费观看| 色噜噜狠狠成人网p站| 美女视频黄a大片欧美| 国产精品午夜久久| 欧美日韩视频不卡| 国产成人自拍网| 一级日本不卡的影视| 日韩精品专区在线影院观看 | 国产精品区一区二区三| 欧美日韩在线精品一区二区三区激情| 精品一区二区三区在线观看国产| 国产精品国产精品国产专区不蜜| 欧美日韩一本到| 久久99精品久久久| 中文字幕一区二区三区视频| 在线成人午夜影院| 成人免费毛片a| 一区二区三区加勒比av| 欧美精品久久99久久在免费线 | 精品视频免费在线| 久久99国产精品麻豆| 国产日韩欧美精品综合| 欧美视频第二页| 成人午夜视频免费看| 欧美精品色综合| 成人性生交大合| 麻豆精品国产传媒mv男同| 亚洲欧洲精品一区二区精品久久久| 欧美一区午夜精品| 99久久久国产精品免费蜜臀| 美女视频免费一区| 亚洲自拍偷拍网站| 国产精品污网站| 欧美成人女星排行榜| 欧美日韩一卡二卡| av成人免费在线观看| 久久国产精品99久久人人澡| 亚洲一区二区成人在线观看| 国产精品嫩草99a| 日韩天堂在线观看| 日本电影欧美片| 丰满白嫩尤物一区二区| 久久成人免费日本黄色| 亚洲第一电影网| 亚洲蜜桃精久久久久久久| 日本一区二区三区四区| 精品国产乱码久久久久久1区2区 | 亚洲一二三四在线| 亚洲天堂久久久久久久| 久久精品综合网| 精品久久免费看| 日韩欧美亚洲国产另类| 欧美三日本三级三级在线播放| 99精品久久只有精品| 丁香桃色午夜亚洲一区二区三区| 奇米精品一区二区三区在线观看| 亚洲香肠在线观看| 亚洲激情男女视频| 亚洲精品一区二区在线观看| 在线观看日韩一区| 色综合天天狠狠| 99re成人在线| 99精品在线免费| 99精品视频一区| 99久久婷婷国产精品综合| 成人av动漫在线| 成人妖精视频yjsp地址| 高清不卡一二三区| 国产成人av一区二区三区在线观看| 精品一区二区三区免费毛片爱| 美女视频一区二区三区| 免费成人结看片| 麻豆精品在线观看| 精品久久久久久久人人人人传媒 | 97精品国产露脸对白| 99国产精品久久久| 91丝袜国产在线播放| 在线一区二区视频|