Defining Topic names in source code in each application is readable in example code, but is not ideal for a real system.
For each data type, indicate to RTI Connext DDS the fields that uniquely identify the data object.
Mapping all of your data model to opaque bytes or strings (even XML strings) is a bad practice for several reasons, some obvious and some subtle: