Skip to content

Instantly share code, notes, and snippets.

@pcompieta
Created December 2, 2015 21:16
Show Gist options
  • Select an option

  • Save pcompieta/783eeea8341e532ba9f7 to your computer and use it in GitHub Desktop.

Select an option

Save pcompieta/783eeea8341e532ba9f7 to your computer and use it in GitHub Desktop.

Revisions

  1. pcompieta created this gist Dec 2, 2015.
    48 changes: 48 additions & 0 deletions quartz.properties
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    #============================================================================
    # Configure Main Scheduler Properties
    #============================================================================
    org.quartz.scheduler.instanceName = myQuartzScheduler
    org.quartz.scheduler.instanceId = AUTO
    org.quartz.scheduler.skipUpdateCheck = true

    #added user transaction jndi
    org.quartz.scheduler.userTransactionURL=jta/usertransaction
    org.quartz.scheduler.wrapJobExecutionInUserTransaction=false
    # org.quartz.scheduler.threadsInheritContextClassLoaderOfInitializer=true

    #============================================================================
    # Configure ThreadPool
    #============================================================================
    org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
    org.quartz.threadPool.threadCount = 10
    org.quartz.threadPool.threadPriority = 4

    #============================================================================
    # Configure JobStore
    #============================================================================
    org.quartz.jobStore.misfireThreshold = 59000
    org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
    org.quartz.jobStore.dataSource=Quartz-DS-XA
    org.quartz.jobStore.nonManagedTXDataSource=Quartz-DS
    org.quartz.jobStore.tablePrefix = TM_
    org.quartz.jobStore.isClustered = false
    org.quartz.jobStore.clusterCheckinInterval = 20000
    org.quartz.jobStore.dontSetAutoCommitFalse=true
    org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate

    #============================================================================
    # Configure Datasources
    #============================================================================
    org.quartz.dataSource.Quartz-DS.jndiURL=jdbc/myds-noXA
    org.quartz.dataSource.Quartz-DS-XA.jndiURL=jdbc/myds

    #============================================================================
    # Configure Plugins
    #============================================================================
    org.quartz.plugin.shutdownHook.class = org.quartz.plugins.management.ShutdownHookPlugin

    #============================================================================
    # Configure specific ThreadExecutor for Websphere 7/8
    #============================================================================
    org.quartz.threadExecutor.class=org.quartz.custom.WorkManagerThreadExecutor
    org.quartz.threadExecutor.workManagerName=wm/default