How to Specify the JMS Properties for the Custom Adapter code

How to Specify the JMS Properties for the Custom Adapter code

book

Article ID: KB0083576

calendar_today

Updated On:

Products Versions
TIBCO Adapter SDK 5.8.0

Description

When needing to specify the JMS Properties in the Custom Adapter code, in such cases use the following property MTree.setJMSProperty method.

Issue/Introduction

When writing custom code for the SDK Adapter, the JMS Properties can be specified through the MTree.setJMSProperty method.

Environment

All Supported Environment

Resolution

In order to specify the JMS Properties for the Custom Adapter Code, use the MTree.setJMSProperty method.

**********************
public void setJmsProperty(java.lang.String propertyName,
                  boolean propertyValue)

 propertyName - Name of the property to be set.
 propertyValue - boolean value of the property set.
*******************
Note that when setting the JMS Properties for the Custom Adapter, the MTree instance must represent the XMLJMS message format. In case if the MTree instance message format is not set to XMLJMS, it will take the XMLRV message format which is the default seralization result and the setJMSProperty will not work.