Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 1.2.5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
The fix of XFIRE-270 breaks the use of the Client with asynchrone channels. A nullpointer is throw when recieving a reply.
When using an asynchrone channel a new messageContext is created and the client is not set on the messageContext because at that moment the client is not know yet.
It is only after the CorrolatorHandler that the client is known. (Warning: at the moment the CorrolatorHandler does not copy the client from old to new context)
It's about the code change on line 399:
//the Client object in the context is not necessary "this" (client.onReceive())
// we need to invoke the handlers from the client in the context not "this"
// was creating issues when used in multi-threaded
Client contextClient = context.getClient();
Regards,
T.