Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2228

UIMA AS doesn't expose CAS instance in onBeforeMessageSend() callback

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.4.0AS
    • Async Scaleout
    • None

    Description

      UIMA AS client sendAndReceive() blocks a thread until either a reply is received or there is a timeout. If an application uses multiple threads each blocked in sendAndReceive(), there is no way for an application to correlate onBeforeMessageSend() and onBeforeProcessCAS() callbacks to a specific CAS. The callbacks only expose cas reference Id, which (in this scenario) does not help since the cas reference id is only available when sendAndReceive() returns. Modify UIMA AS to expose CAS instance when calling onBeforeMessageSend() and onBeforeProcessCAS(). The CAS will be available via a new getCAS() method defined in UimaASProcessStatus which is an argument in both callbacks.

      Attachments

        Activity

          People

            cwiklik Jaroslaw Cwiklik
            cwiklik Jaroslaw Cwiklik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: