How to send messages to a specific destination from hawk rulebase

How to send messages to a specific destination from hawk rulebase

book

Article ID: KB0075379

calendar_today

Updated On:

Products Versions
TIBCO Hawk -
Not Applicable -

Description

Description:
User needs to send messages to an EMS topic or queues or a specific RV subject via a Hawk method or send an alert to a specific destination in a rulebase. Use the msghma microagent in <hawk_install_home>\examples\msghma folder.

Issue/Introduction

How to send messages to a specific destination from hawk rulebase

Resolution

For example, using EMS msghma MA send message to a topic:

 

1). Copy msghmaEmsSample1.hma and msghmaEmsSample1.xml to the plugin folder so that the hawkagent can load it when starting.
 
2). Edit the msghmaEmsSample1.xml file. Specify the correct "ems_url" and "ems_uid".  //ems_uid is ems user name. you may add ems_pw  if ems password is required..
 
3). Edit msghmaEmsSample1.hma. Give the correct path of msghmaEmsSample1.xml.
 
4). Restart the hawkagent. The methods can be seen in hawkdisplay/webconsole.
 
So does the RV msghma. The only difference is specifying the corresponding RV parameters in msghmaRvSample1.xml.

Send message to a queue:
This microagent does not support sending messages to queues directly, however there is an EMS feature which bridges topics and queues.
Here is the example, assuming you created bridge  like this:
create bridge source=topic:mytop target=queue:myqueue
addprop topic mytop trace
addprop queue myqueue trace

Please see EMS documentation for more details.