java - Spring Framework Connecting JVM with each other -


I have 4 servers and JVM is installed on them. I have written a Java service that quartz tells these services every 10 minutes. But in 4 servers, 4 calls are done every 10 minutes. The situation of this sitting race makes me want only one service on 4 JVM

How can I do this with Spring Framework?

It does not really help much easier quartz spring you even more to install in Because it is unaware of the ongoing JVM. On the other hand, the concept of scheduler compiled in quartz is

Actually you need to set up a single database that can share all 4 JVMs. It will be used as a scheduler for all 4 instances. When set for a job, it is run using only one cluster scheduler from the examples.

For clustering (quartz) taken from the website wiki, it is an example configuration on how to set up the scheduler scheduler. If you are configuring your scheduler in this way, you can also set these properties directly from spring.

  # ======================================= ================================================== = # Configure the main scheduler property ======================================= ==== ================================= org.quartz.scheduler.instanceName = Maiklstrd Sidiyulr org. Quartz scheduler.instanceId = auto # =========================================== = =================================================== Configurable ThreadPool ============= = ================================================= = ============ Orgkkwartzkthredpulkclas = Orgkkwartzksimplksimplethreedpul Orgkkwartzkthredpulkthredcount = 25 Orgkkwartzkthredpulkthredprioriti = 5 # === = ================================================= = Configure Jobstore ================ == ================================================ == == org.quartz.jobstore.misfireThreshold = 60000 org.quartz.jobstore.class = org.qu Artz.impl.jdbcjobstore.JobStoreTX org.quartz.jobstore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate Org.quartz.jobstore.useProperties = Incorrect org.quartz.jobstore.dataSource = myDS org.quartz.jobstore tablePrefix = QRTZ_ org.quartz.jobStore.isClustered = true org.quartz.jobStore.clusterCheckinInterval = 20000 # ============================ ================================================ Configure Data Source #=============================================== = ============================ Orgkkwartzkdtsurskmeedskdraivr = Oreklkjbkkdraivrkorcledriver Orgkkwartz. DataSource .myds.URL = jdbc: oracle: Slim: @plterbearer: 1521: Dev Org. Quartz Datasource.media User = quartz org. Quartz Datasource.mds Password = quartz org Quartz Datasource.mds Choose 0 from Max Connection = 5 Org.quartz.dataSource.myDS.validationQuery = Dual  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -