How to use poller trigger in spring integration int-jpa:inbound-channel-adapter such that trigger persist in DB -


i have spring integration inbound adapter works fine, below. , have setup quartz in cluster mode (hence persist trigger/scheduler) in db. works fine well, job extends org.quartz.job class. trying make the poller in int-jpa:inbound-channel-adapter in cluster mode, when deployed in multiple nodes 1 of running. got idea of doing serviceactivator not sure how scenario mine using int-jpa:inbound-channel-adapter. using spring 4 , quartz 2.


<int-jpa:inbound-channel-adapter     id="inboundchanneladapteriiddatajpa"     channel="inboundchanneladapterone"     entity-manager="entitymanager"     jpa-query="select g house g"     expect-single-result="false"     delete-after-poll="false">     <int:poller fixed-rate="50000">          <int:transactional propagation="required"             transaction-manager="transactionmanager" />     </int:poller> </int-jpa:inbound-channel-adapter> 

i tried replace poller ( above ) , define cron this;

 <bean id="mytrigger" class="org.springframework.scheduling.quartz.crontriggerbean">     <property name="cronexpression" value="0 0/5 * * * ?" />     <property name="jobdetail" ref="inboundchanneladapteriiddatajpa" /> </bean> 

here jobdetail ref adaptor id. , have "mytrigger" within scheduler

<bean id="scheduler" class="org.springframework.scheduling.quartz.schedulerfactorybean">     <property name="triggers">         <list>             <ref bean="mytrigger" />         </list>     </property> </bean> 

but not work. looking solution such trigger in cluster mode keeping trigger info in quartz table.


Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -