Announcement Announcement Module
No announcement yet.
Execution Order Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Execution Order

    I am trying to execute a job using SimpleAsyncTaskExecutor. The job will started from Spring controller on form submission. Everything works fine except that the job execution/completion order is very weird.

    When I submit a job1 which consumes higher time, obviously it takes more time to finish.

    When I submit job2 which will take a few seconds, does not complete within a few seconds and hangs in pending status.

    When I submit job3 which will also take a few seconds, completes within a few seconds.

    The priority on which the job is completed is totally weird.

    Any idea on how to make the task independent on each other.

    I have given 1GB of memory to tomcat server and should not have any issues in terms of memory.

    I am not sure what I am missing here..please feel free to ask if you need more details, but I need your help on this.

    Thanks in advance.