This article explains how to develop RFA Java application to monitor the health of services. The general techniques could be applied to TREP real-time streaming APIs e.g. RFA.NET/C+, ETA C+/Java.
For some instruments, suffix of RIC indicates the exchange where it is traded, e.g. HSBA.L (.L = LSE - London Stock Exchange), HBC.N (.N = NYSE - New York Stock Exchange). However, there are some instruments without this suffix. How can an app know on which exchange they are listed?