Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9063225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:56:22+00:00 2026-06-16T15:56:22+00:00

Quartz is usually configured via quartz.properties on the classpath. e.g.: org.quartz.scheduler.instanceName = BagginsScheduler org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool

  • 0

Quartz is usually configured via quartz.properties on the classpath.

e.g.:

org.quartz.scheduler.instanceName = BagginsScheduler
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool   
org.quartz.threadPool.threadCount=5  
org.quartz.threadPool.threadPriority=1  

From within the same application that will run the Quartz jobs, I’d like to read out the properties.

Reading the scheduler name is easy:

Scheduler scheduler = StdSchedulerFactory.getDefaultScheduler();  
String name = scheduler.getSchedulerName();

But how can I read the `threadPriority’ property?

The following does not work:

scheduler.getContext().getString("org.quartz.threadPool.threadPriority");

UPDATED Solution:
It seems that the property can’t be read via Quartz API, you have to go via regular Properties:

Properties prop = new Properties();
prop.load(AnyClassUsedByJVM.class.getClassLoader().getResourceAsStream("quartz.properties"));
String prio = prop.getProperty("org.quartz.threadPool.threadPriority");

This works fine.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:56:23+00:00Added an answer on June 16, 2026 at 3:56 pm

    You can just add that property to your quartz.properties. For example:

    org.quartz.threadPool.threadPriority=3
    

    For more information, see here and configuration documentation

    EDIT: To read properties at runtime, you can use Properties. Here’s a sample snippet of code you can use:

    Properties p = new Properties();
    p.load("/tmp/quartz.properties"); // path to your properties file
    System.out.println(p.getProperty("org.quartz.threadPool.threadPriority"); // prints 3
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scheduled the first java Quartz job successfully with the instructions mentioned in - http://quartz-scheduler.org/documentation/quartz-2.1.x/examples/Example1
I create Quartz job and start scheduler JobDetail job = newJob(InfoCrawlerJob.class) .withIdentity(job id, group)
I have the following quartz job, set via Quartz-plugin: class UserMonthlyNotificationJob { static triggers
I have a quartz cron trigger that looks like so: <bean id=batchProcessCronTrigger class=org.springframework.scheduling.quartz.CronTriggerBean> <property
A quartz scheduler is being used in an Application I am working on. A
I am using quartz scheduler to schedule my job. I have used CronTrigger. But
Our use of Quartz so far has been to configure the database backed scheduler
I have implemented quartz scheduler in my application. And its working upto a certain
I am currently using Quartz Scheduler for asynchronous tasks such as sending an email
I am using quartz scheduler in my spring project. I have to run a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.