Hi,
Can you explain how is this CommandCallback works,
Below is a sample code I wrote but I never get any response.
CommandCallback commandCallback = new CommandCallback() {
@Override
public void onSuccess(CommandMessage commandMessage, Object result) {
System.out.println("PatientServiceImpl.onSuccess");
}
@Override
public void onFailure(CommandMessage commandMessage, Throwable cause) {
System.out.println("PatientServiceImpl.onFailure");
}
};
gateway.send(command,commandCallback);