When using RV as a channel, how to send in the RV message with payload using plain Java code?

When using RV as a channel, how to send in the RV message with payload using plain Java code?

book

Article ID: KB0090058

calendar_today

Updated On:

Products Versions
TIBCO BusinessEvents Enterprise Edition -
Not Applicable -

Description

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)

Issue/Introduction

When using RV as a channel, how to send in the RV message with payload using plain Java code?

Attachments

When using RV as a channel, how to send in the RV message with payload using plain Java code? get_app
When using RV as a channel, how to send in the RV message with payload using plain Java code? get_app
When using RV as a channel, how to send in the RV message with payload using plain Java code? get_app