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

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

?? workmanagerfactorybean.java

?? Jencks是一個輕量級的JCA容器。它可以輕松部署到Spring中以提供消息驅動的POJOs.此外Jencks通過使用類似于JMS,JAX-RPC,JBI與JCA CCI的API來提供對inboun
?? JAVA
字號:
/** *  * Copyright 2005 LogicBlaze, Inc. http://www.logicblaze.com *  * 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.factory;import java.util.Collection;import java.util.Map;import javax.resource.spi.BootstrapContext;import javax.resource.spi.work.WorkManager;import javax.transaction.xa.XAException;import org.apache.geronimo.connector.work.GeronimoWorkManager;import org.apache.geronimo.transaction.ExtendedTransactionManager;import org.apache.geronimo.transaction.context.TransactionContextManager;import org.apache.geronimo.transaction.log.UnrecoverableLog;import org.apache.geronimo.transaction.manager.TransactionLog;import org.apache.geronimo.transaction.manager.TransactionManagerImpl;import org.apache.geronimo.transaction.manager.XidImporter;import org.springframework.beans.factory.FactoryBean;import org.springframework.beans.factory.InitializingBean;import org.springframework.context.ApplicationContext;import org.springframework.context.ApplicationContextAware;/** * A Spring {@link FactoryBean} for creating a {@link BootstrapContext} for the JCA container * with the {@link WorkManager} and {@link ExtendedTransactionManager}. * * @version $Revision: 1.5 $ */public class WorkManagerFactoryBean implements FactoryBean, InitializingBean, ApplicationContextAware {	private ApplicationContext applicationContext;    private GeronimoWorkManager workManager;    private TransactionContextManager transactionContextManager;    private int threadPoolSize = 30;    private ExtendedTransactionManager transactionManager;    private XidImporter xidImporter;    private int defaultTransactionTimeoutSeconds = 600;    private TransactionLog transactionLog;    private Collection resourceManagers;    public Object getObject() throws Exception {        return workManager;    }    public Class getObjectType() {        return WorkManager.class;    }    public boolean isSingleton() {        return true;    }        public void setApplicationContext(ApplicationContext applicationContext) {    	this.applicationContext = applicationContext;    }    public void afterPropertiesSet() throws Exception {        workManager = createWorkManager();        workManager.doStart();    }    public GeronimoWorkManager getWorkManager() throws Exception {        if (workManager == null) {            afterPropertiesSet();        }        return workManager;    }    public TransactionContextManager getTransactionContextManager() throws XAException {		if (transactionContextManager == null && applicationContext != null) {			Map map = applicationContext.getBeansOfType(TransactionContextManager.class);			if (map.size() > 1) {				throw new IllegalStateException("only one TransactionContextManager can be registered");			} else if (map.size() == 1) {				transactionContextManager = (TransactionContextManager) map.values().iterator().next();			}		}		if (transactionContextManager == null) {            transactionContextManager = createTransactionContextManager();		}        return transactionContextManager;    }    public void setTransactionContextManager(TransactionContextManager transactionContextManager) {        this.transactionContextManager = transactionContextManager;    }    public int getThreadPoolSize() {        return threadPoolSize;    }    public void setThreadPoolSize(int threadPoolSize) {        this.threadPoolSize = threadPoolSize;    }    public ExtendedTransactionManager getTransactionManager() throws XAException {		if (transactionManager == null && applicationContext != null) {			Map map = applicationContext.getBeansOfType(ExtendedTransactionManager.class);			if (map.size() > 1) {				throw new IllegalStateException("only one ExtendedTransactionManager can be registered");			} else if (map.size() == 1) {				transactionManager = (ExtendedTransactionManager) map.values().iterator().next();			}		}		if (transactionManager == null) {            transactionManager = new TransactionManagerImpl(getDefaultTransactionTimeoutSeconds(), getTransactionLog(), getResourceManagers());		}        return transactionManager;    }    public void setTransactionManager(ExtendedTransactionManager transactionManager) {        this.transactionManager = transactionManager;    }    public XidImporter getXidImporter() {        if (xidImporter == null && transactionManager instanceof XidImporter) {            xidImporter = (XidImporter) transactionManager;        }        return xidImporter;    }    public void setXidImporter(XidImporter xidImporter) {        this.xidImporter = xidImporter;    }    public int getDefaultTransactionTimeoutSeconds() {        return defaultTransactionTimeoutSeconds;    }    public void setDefaultTransactionTimeoutSeconds(int defaultTransactionTimeoutSeconds) {        this.defaultTransactionTimeoutSeconds = defaultTransactionTimeoutSeconds;    }    public TransactionLog getTransactionLog() {        if (transactionLog == null) {            transactionLog = new UnrecoverableLog();        }        return transactionLog;    }    public void setTransactionLog(TransactionLog transactionLog) {        this.transactionLog = transactionLog;    }    public Collection getResourceManagers() {        return resourceManagers;    }    public void setResourceManagers(Collection resourceManagers) {        this.resourceManagers = resourceManagers;    }    // Implementation methods    //-------------------------------------------------------------------------    protected TransactionContextManager createTransactionContextManager() throws XAException {        return new TransactionContextManager(getTransactionManager(), getXidImporter());    }    protected GeronimoWorkManager createWorkManager() throws XAException {        return new GeronimoWorkManager(getThreadPoolSize(), getTransactionContextManager());    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合色综合88| 中文字幕一区av| 婷婷综合另类小说色区| 欧美性生活一区| 亚洲一区免费观看| 欧美日韩一区二区三区高清| 一区二区三区免费网站| 在线亚洲欧美专区二区| 蜜臀久久久99精品久久久久久| 欧美精品一区二区在线播放| 丁香六月久久综合狠狠色| 国产精品久久三区| av在线不卡免费看| 亚洲国产一区二区三区青草影视| 日韩精品在线一区| 成人av资源下载| 一区二区三区免费网站| 欧美tickling挠脚心丨vk| 91丝袜美腿高跟国产极品老师| 亚洲激情图片qvod| 国产精品视频你懂的| 91精品国产一区二区三区香蕉| 成人爱爱电影网址| 国产成人小视频| 偷窥国产亚洲免费视频| 亚洲男人天堂一区| www一区二区| 337p亚洲精品色噜噜| 日本欧美肥老太交大片| 亚洲国产一区在线观看| 综合色天天鬼久久鬼色| 欧美一区二区在线免费播放| 在线区一区二视频| 91老司机福利 在线| 国产露脸91国语对白| 国内精品第一页| 美女视频黄免费的久久 | 色网综合在线观看| 国产91富婆露脸刺激对白 | 91色在线porny| 成人高清免费观看| av网站免费线看精品| 国产一区欧美二区| 麻豆国产精品视频| 五月天亚洲婷婷| 麻豆成人在线观看| 亚洲mv在线观看| 婷婷国产v国产偷v亚洲高清| 亚洲国产精品久久久久婷婷884| 亚洲区小说区图片区qvod| 亚洲一线二线三线久久久| 天天综合天天综合色| 老司机精品视频在线| 国产高清精品网站| 色爱区综合激月婷婷| 日韩欧美综合一区| 中文欧美字幕免费| 青青草原综合久久大伊人精品优势 | 狠狠网亚洲精品| 色偷偷久久一区二区三区| 欧美日韩一区二区不卡| 亚洲国产精品99久久久久久久久| 亚洲欧美日韩系列| 激情五月婷婷综合网| 国产乱码精品1区2区3区| 在线欧美日韩国产| 久久综合狠狠综合久久激情| 亚洲精品国产第一综合99久久| 亚洲成av人影院| 91视频国产观看| 国产人久久人人人人爽| 精品伊人久久久久7777人| 欧美美女一区二区在线观看| 国产欧美日韩在线| 国产精品亚洲视频| 精品国产露脸精彩对白 | 一本大道久久精品懂色aⅴ| 欧美一级欧美三级| 性做久久久久久免费观看欧美| 色综合久久综合网97色综合| 中文字幕高清不卡| av成人免费在线| 亚洲人成7777| 成人高清伦理免费影院在线观看| 国产欧美一区二区精品久导航| 日韩av一二三| 久久品道一品道久久精品| 国产精品综合视频| 国产欧美va欧美不卡在线| 国v精品久久久网| 亚洲日本va在线观看| 欧美在线不卡视频| 日韩av网站在线观看| 精品视频色一区| 日韩精品一区第一页| 欧美精品久久99久久在免费线| 日本va欧美va精品发布| 久久久不卡网国产精品一区| 91免费看视频| 免费观看30秒视频久久| 欧美国产精品专区| 欧美三级一区二区| 国产成人免费视| 蜜桃视频在线观看一区| 中文字幕一区不卡| 91精品麻豆日日躁夜夜躁| 成年人网站91| 极品销魂美女一区二区三区| 亚洲日本电影在线| 欧美国产日韩在线观看| 欧美一级欧美一级在线播放| 91一区一区三区| 国产成人精品三级| 国模冰冰炮一区二区| 日本视频一区二区| 亚洲韩国精品一区| 国产蜜臀97一区二区三区| 欧美一卡二卡三卡四卡| 欧美精品乱码久久久久久按摩| av午夜一区麻豆| av一区二区不卡| 成人app软件下载大全免费| 国产伦精品一区二区三区免费 | 韩国欧美一区二区| 美腿丝袜在线亚洲一区| 亚洲高清久久久| 偷拍一区二区三区四区| 三级欧美在线一区| 日本不卡123| 国产一区91精品张津瑜| 国产成人精品1024| 91小视频在线观看| 欧美一区二区三区日韩| 国产一区二区在线看| 91精品麻豆日日躁夜夜躁| 国产成人亚洲综合a∨婷婷| 日韩国产精品91| 麻豆91精品91久久久的内涵| 日本色综合中文字幕| 麻豆久久久久久久| 国产在线观看一区二区| 国产曰批免费观看久久久| 国产精品一品视频| 91麻豆免费视频| 欧美老人xxxx18| 日韩一级片在线播放| 国产欧美一区二区精品性色超碰| 国产日韩欧美a| 亚洲一二三四区不卡| 日本不卡一二三| 成人一区二区在线观看| 在线观看不卡视频| 欧美成人福利视频| 国产精品盗摄一区二区三区| 午夜视频一区二区三区| 国内外成人在线| 色狠狠一区二区| 久久精品一区二区三区不卡牛牛| 亚洲人成网站色在线观看| 蜜臂av日日欢夜夜爽一区| 99精品国产热久久91蜜凸| 日韩欧美中文一区二区| 中文字幕一区二区三区在线不卡 | 99re在线视频这里只有精品| 日本乱人伦一区| 精品99久久久久久| 一区二区三区中文在线观看| 精品一区二区日韩| 在线精品视频小说1| 久久婷婷成人综合色| 亚洲国产乱码最新视频| 国产成人免费av在线| 欧美一卡二卡在线观看| 曰韩精品一区二区| 国产69精品久久久久777| 制服丝袜亚洲网站| 一区二区三区视频在线看| 国产伦精一区二区三区| 欧美一卡二卡在线| 性感美女极品91精品| 91看片淫黄大片一级| 国产视频一区二区在线观看| 美国毛片一区二区三区| 欧美日韩中文国产| 亚洲乱码国产乱码精品精98午夜 | 午夜精品一区二区三区电影天堂 | 国产精品99久久不卡二区| 在线综合视频播放| 亚洲1区2区3区视频| 欧美色区777第一页| 亚洲天堂成人在线观看| 国产99久久久国产精品免费看| 日韩一级片在线播放| 蜜桃av一区二区三区| 91超碰这里只有精品国产| 亚洲超碰精品一区二区| 欧美色综合影院| 香蕉成人伊视频在线观看| 欧美日韩亚州综合| 日日夜夜精品视频天天综合网|