`

How to start and stop Job in Spring Integration by annually.

 
阅读更多
How to start and stop Job in Spring Integration by annually.


<int-jpa:inbound-channel-adapter id="jobBeanID" auto-startup="${auto.start}" entity-manager="em"
send-timeout="${channel.default.timeout}" channel="queryJobListChannel" expect-single-result="true"
jpa-query="SELECT job FROM JobEntity job WHERE job.jobBeanId='abc' ">
  <int:poller fixed-delay="${poll.interval}" />
</int-jpa:inbound-channel-adapter>




SourcePollingChannelAdapter spca = (SourcePollingChannelAdapter) context.getBean("jobBeanID");

System.out.println("start the job");

spca.start();

do {
     try {
                Thread.sleep(5000);
            }
            catch (InterruptedException e) {
                e.printStackTrace();
            }

            count++;
        } while (count < 3);

System.out.println("stop the job");

spca.stop();
分享到:
评论

相关推荐

    2018版国际音标IPA-chart-2018.pdf

    最新国际音标规范,2018版。国际语音学会行业规范。 ... The IPA is the major as well as the oldest ... The latest version of the IPA Alphabet was published in 2015, and IPA charts are re-issued annually.

    How to implement SCP-ECG, Part II

    It is estimated that more than 100 million ECGs are recorded annually in Western Europe. In view of the high costs of health care it is of eminent importance that the results of this straightforward ...

    Big.Data.Open.Data.and.Data.Development.184821880X

    The world has become digital and technological advances have multiplied circuits with access to data, their processing and their diffusion. New technologies have now reached a certain maturity. Data ...

    Sharpe.zip_In Time_Sharpe Ratio_sharpe_夏普比率

    计算多种粒度下的夏普比率.This function computes the Sharpe ratio in different time scale. From daily, monthly to annually.

    eta-nonfab-deploy-guide-2019oct.pdf

    increased by more than 90 percent annually Encryption technology has enabled much greater privacy and security for enterprises and individuals that use the Internet to communicate and transact ...

    汽车智能工厂:让汽车制造商做上数字工业革命的驾驶席(英文版).pdf

    1. Smart factories could add up to $160 billion annually to the global auto industry as productivity gains by 2023 onwards. 2. The automotive industry is the most enthusiastic about smart factories ...

    CFP_ISIE2019.pdf

    The ISIE annually gathers together Industry experts, researchers and academics to share ideas and experiences surrounding frontier technologies, breakthroughs, innovative solutions, research results, ...

    HowToImplement SCP-ECG_Part I

    In view of the high costs of health care it is of eminent importance that the results of this straightforward cardiac test can be easily communicated between the various health care providers and that...

    The Holy Grail of Network Storage Management

    Given the high costs associated with enterprise storage in most companies, it might be easy to suspect that some dark and sinister hand is at work. By some analyst accounts, corporate IT departments ...

    英文原版-Recent Advances in Surgery 30 30th Edition

    Recent Advances in Surgery... This title is updated annually, covering the latest trends within surgery and reflecting any changes to the professional examinations for surgeons.,解压密码 share.weimo.info

    fatality.pdf

    states (excluding Alaska and Hawaii), annually for 1982 through 1988. The traffic fatality rate is the number of traffic deaths in a given state in a given year, per 10,000 people living in that ...

    Ottawa Linux Symposium 2011论文集

    The Linux Symposium (commonly referred to as OLS, from Ottawa Linux Symposium, though it is not necessarily held in Ottawa) is a Linux and Open Source conference held annually in Canada. It features ...

    Ottawa Linux Symposium 2010论文集

    The Linux Symposium (commonly referred to as OLS, from Ottawa Linux Symposium, though it is not necessarily held in Ottawa) is a Linux and Open Source conference held annually in Canada. It features ...

    it_skills_salary_report_2019_part1_global_knowledge_en_ww.pdf

    in the technology community and has been conducted annually for over a decade. Throughout the report, you’ll find the data broken up by region: North America; Latin America; Europe, the Middle East ...

    concrete mathematics - 2nd edition

    About fty students have taken it each year|juniors and seniors, but mostly graduate students|and alumni of these classes have begun to spawn similar courses elsewhere. Thus the time seems ripe...

    blackcoin-qt

    Nominal stake interest: 1% annually Min transaction fee: 0.0001 BC Fees are paid to miners Confirmations: 10, maturity: 500 Min stake age: 8 hours, no max age P2P port: 15714, RPC port: 15715 Proof ...

    financecalculator:财务计算器

    #财务计算器财务计算器如何使用: m = number of compounding periods per year:(annually m=1, semi-annually m=2, quarterly m=4; monthly m=12, daily = 365)r = the annual interest as a decimal: (12%% = ...

    2013年大学英语六级词汇表(免费下载)

    * annually:年年,每年 * anode:阳极、正极、板极 * answer:符合、适合 * antarctic:南极的、南极区 * antenna:天线 二、词汇扩展 * abbreviate:缩写 * abdicate:退位、让位 * abnormal:不正常的、反常的 ...

    具有可变支出规则的 DC 养老金累积的最优资产配置-研究论文

    我们使用用于 DC 养老金计划累积的年度重新计算虚拟年金 (ARVA) 支出规则来确定债券和股票的最佳资产配置。 对于给定的总预期取款固定值,我们的目标函数最小化了下行取款可变性。 使用最优随机控制方法找到最优资产...

Global site tag (gtag.js) - Google Analytics