When a connected Manager sends a Custom Message to the Listener, the Manager will inform the application of this by calling processCustomMessage from an independent thread. For more information about the processing of Custom Messages, see Supporting Communication from Managers: Processing Custom Messages.
void processCustomMessage(String message);
PCHcallable PCHLibrary = new defaultCallable();
...
PCHLibrary.processCustomMessage("This is a Custom Message.");
...