Run your feed handler with the demo subscriber to test that messages are processed correctly.
Prerequisites
(Recommended) Set up your feed handler to run from the OpsConsole.
The demo subscriber writes binary output to a set of files. While you can examine these file directly, it is easier to use the OpsConsole to test that the subscriber is receiving data correctly.
-
If your publisher is configured for the OpsConsole:
-
From the OpsConsole, view statistics for messages sent by the custom feed handler, and for messages received by the subscriber.
-
Compare the results.
They should be the same, especially for a short run.
-
To look at data to ensure that it arrived correctly for a custom message type:
-
Define it for RAPCache and RAPStore in the message template.
-
Ensure that the subscriber has the same template.
-
Ensure that RAPCache and RAPStore data stores have the same table as in the template to store the data, and that it is defined correctly.
-
From the OpsConsole, start RAPCache and RAPStore, and start your feed handler.
-
Use View Statistics in the Monitor to see how much data is received and loaded.
- If data is not being loaded at all, examine log files.
- If data is being loaded but is not what is expected, there is probably a problem with the set field method.
For example, date formatting or time formatting may be read in one way, but not sent to the subscriber in the way that RAP requires. The feed handler must interpret data in a way that RAP expects.
-
If data does not match what you expect, try either:
- Running a debugger
- Writing log statements