[
https://issues.apache.org/jira/browse/UIMA-2228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerry Cwiklik closed UIMA-2228.
-------------------------------
Resolution: Fixed
> UIMA AS doesn't expose CAS instance in onBeforeMessageSend() callback
> ---------------------------------------------------------------------
>
> Key: UIMA-2228
> URL: https://issues.apache.org/jira/browse/UIMA-2228
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Jerry Cwiklik
> Assignee: Jerry Cwiklik
> Priority: Minor
> Fix For: 2.3.2AS
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira