Consultor Eletrônico



Kbase 33042: Example contents of rules file for CBR service
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
Solution ID: P3042

GOAL:

A simple example rules file for CBR service with SonicXQ Endpoint as the topic

FACT(s) (Environment):

SonicMQ 4.x
SonicXQ

FIX:

/*Example file TopicCBRExample.js
Gets XQ Endpoint from the property "Destination" -
if that property is not set, the messages are by default
routed to the XQ Endpoint, XQ_SampleT5 which uses a topic
from the underlying JMS system.
*/

function rule()
{
my_dest = "";
my_dest = XQ_getProperty("Destination");
if (my_dest != null)
{

return XQ_getEndPoint(my_dest);
}
return XQ_getEndPoint("XQ_SampleT5");
}