我正在使用 JobStoreTX(JDBC jobstore) 作业存储来实现集群,但我的问题是调度程序不断打开和关闭数据库连接。一秒钟至少10次。
请让我知道我应该设置什么属性才能仅从连接池获取连接。提前致谢
我正在使用 JobStoreTX(JDBC jobstore) 作业存储来实现集群,但我的问题是调度程序不断打开和关闭数据库连接。一秒钟至少10次。
请让我知道我应该设置什么属性才能仅从连接池获取连接。提前致谢
You can increase value for this org.quartz.jobStore.clusterCheckinInterval property (Default Value : 15000 milliseconds). This Property will Set the frequency (in milliseconds) at which this instance “checks-in”* with the other instances of the cluster. Affects the quickness of detecting failed instances.
You also can try with other Properties form Click here .
您可以使用SchedulerFactoryBean创建具有某些属性的调度程序,包括数据源。请参阅SchedulerFactoryBean。