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 6989517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:13:19+00:00 2026-05-27T19:13:19+00:00

From such a job, I’m doing: @OnApplicationStart public class Bootstrap extends Job { Foo

  • 0

From such a job, I’m doing:

@OnApplicationStart
public class Bootstrap extends Job {
  Foo foo = new Job<Foo>() {
    ...
    return new Foo();
  }.now().get();
}

And I find that the inner job is never executed, bringing the application to a deadlock, because it blocks on the get().

I’m running Play 1.2.4 in Dev Mode. The job is submitted to JobsPlugins.executor, which is initialized to have 10 threads – more than enough. I tried putting a breakpoint in the Callable inside Job.now() – that breakpoint is never hit.

  • 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-05-27T19:13:20+00:00Added an answer on May 27, 2026 at 7:13 pm

    Yes it is supported and works well. One of the reason to do this could be to control the order of jobs execution.

    For my App, only BootstrapJob is annotated with @OnApplicationStart and controls the order of execution

    public void doJob() {
    
        if (User.count() == 0)
            Fixtures.loadModels("user-data.yml");
    
        Logger.info("Starting synchronous jobs.");
        new StaticDataJob().doJob();
    
        Logger.info("Starting asynchronous jobs.");
        new TransactionJob().now();
        new ReportJob().now();
    
            Logger.info("Boostrap job complete.");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When inserting copy into an HTML document I get from sources such as word
I would like to get data from from different webpages such as addresses of
How can I get the int value from a string such as 423e -
in my grails application i'd like to invoke from a scheduled job class a
If you have a method such as this: float method(myClass foo) { return foo.PrivateVar()
I'm doing some fill in the blanks from a sample exam for my class
I am using execv() to run commands from /bin/ such as 'ls', 'pwd', 'echo'
We have a need to take dozens of different protocols from systems such as
In Java, I can't take a byte array of unsigned bytes (from something such
I have a string read from another source such as \b\bfoo\bx. In this case,

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.