Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
All
Description
The following change in JDKInvocationHandler.handleCallback() improves performance when callback is not defined.
From:
-----------------------------------
private void handleCallback(Message msg, RuntimeWire wire, Object currentConversationID)
throws TargetResolutionException {
ReferenceParameters parameters = msg.getFrom().getReferenceParameters();
parameters.setCallbackID(getCallbackID());
if (msg.getFrom() == null || msg.getFrom().getCallbackEndpoint() == null)
parameters.setCallbackReference(msg.getFrom().getCallbackEndpoint());
------------------------------------
To:
------------------------------------
private void handleCallback(Message msg, RuntimeWire wire, Object currentConversationID)
throws TargetResolutionException {
if (msg.getFrom() == null || msg.getFrom().getCallbackEndpoint() == null) { return; }
ReferenceParameters parameters = msg.getFrom().getReferenceParameters();
parameters.setCallbackID(getCallbackID());
parameters.setCallbackReference(msg.getFrom().getCallbackEndpoint());
-------------------------------------