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版。国际语音学会行业规范。 ... 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.
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 ...
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 ...
计算多种粒度下的夏普比率.This function computes the Sharpe ratio in different time scale. From daily, monthly to annually.
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 ...
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 ...
The ISIE annually gathers together Industry experts, researchers and academics to share ideas and experiences surrounding frontier technologies, breakthroughs, innovative solutions, research results, ...
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...
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... This title is updated annually, covering the latest trends within surgery and reflecting any changes to the professional examinations for surgeons.,解压密码 share.weimo.info
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 ...
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 ...
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 ...
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 ...
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...
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 ...
#财务计算器财务计算器如何使用: 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%% = ...
* annually:年年,每年 * anode:阳极、正极、板极 * answer:符合、适合 * antarctic:南极的、南极区 * antenna:天线 二、词汇扩展 * abbreviate:缩写 * abdicate:退位、让位 * abnormal:不正常的、反常的 ...
我们使用用于 DC 养老金计划累积的年度重新计算虚拟年金 (ARVA) 支出规则来确定债券和股票的最佳资产配置。 对于给定的总预期取款固定值,我们的目标函数最小化了下行取款可变性。 使用最优随机控制方法找到最优资产...