Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-6726

Start Spring Process Application after Spring Context is initialized fully

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.0, 7.6.0-alpha5
    • Component/s: engine
    • Labels:

      Description

      Problem:

      • When the SpringProcessApplication#afterPropertiesSet() method is called, the deployment is created and is registered with the job executor. Once this is done, the job executor starts executing jobs. This can be a problem if not all other application beans are initialized yet

      Solution Proposal:

      • implement ApplicationListener instead of InitializingBean, DisposableBean. This way we get a callback when the context is fully built.

      Note: see PR: https://github.com/camunda/camunda-bpm-platform/pull/49

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            meyer Daniel Meyer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: