Uploaded image for project: 'TorqueBox'
  1. TorqueBox
  2. TORQUE-806

Scheduled job using infinispan cache not accessible in controller

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.1.0
    • Component/s: Jobs
    • Labels:
      None

      Description

      When a scheduled job updates the cache, the cache doesn't appear to be available in the controller of the same application.

      In the example repo below, I created a scheduled job (RefreshMessage) that populates the TorqueBox::Infinispan::Cache with name "messages" and the key "message_key". When the cache is requested from the controller (MainController), the "message_key" is not populated like we thought it would be.

      https://github.com/outten45/torquebox-with-scheduled-job

      I tried in production mode as well and that didn't seem to make a difference.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                lanceball Lance Ball
                Reporter:
                outten45 Richard Outten (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: