Products | Versions |
---|---|
TIBCO BusinessEvents Enterprise Edition | - |
Not Applicable | - |
Resolution:
Description:
=========
When using RV as a channel, how to send in the RV message with payload using plain Java code?
Environment:
===========
BusinessEvents 4.0
Resolution:
==========
The key point is to construct the RV message correctly. In summary there are three parts:
_nm_
_ns_
_payload_
A typical definition of the message follows:
msg.add("_nm_", nm);
msg.add("_ns_", ns);
msg.add("_payload_", new TibrvXml(payLoad.getBytes()), TibrvMsg.XML);
Note that the payLoad XML must comply to the event payload schema, otherwise the payload will be NULL in BusinessEvents.
Attachments:
===========
Tibrvsend.java - The Java source code for demonstrating sending an RV message with payload.
test.xml (XML payload sample)
project.zip ( BE4.0 sample project)