Messages can also be created directly from Java messages using the TIBCO RV API directly. Using coded messages will be significantly faster running than the XML based formats. However the tradeoff is they can be more complicated to develop.
To use specify the fully qualified class name of an object you
create. This object must implement the
com.reuters.msgtest.Creator
interface and provide
a default constructor.
public class SampleCreator implements Creator { public Object create(Object object) { TibrvMsg tibrvMsg = new TibrvMsg(); return Collections.singletonList(tibrvMsg); } }
Currently when creating messages you must return a List of messages. This behavior is expected to be enhanced or changed to support TibrvMsg objects but for now the message creator must return a list.