Hi,
From a previous post (August 26, 2016) where you give the following code to send a message from a module, I tried to use the same thing to send a message to a remote gateway but it seems that the remoteServers property doesn’t exist on the filter properties available in the SDK. Is it possible or I miss something?
Thanks
Code:
MessageDispatchManager mdm = gatewayContext.getMessageDispatchManager();
PyDictionary payload = new PyDictionary(new PyObject[] {
new PyString(“Source”), new PyString(“Gateway”),
new PyString(“Message”), new PyString(“testMessage”)
});
// Limit to Gateway scope
Properties filterParams = new Properties();
filterParams.setProperty(MessageDispatchManager.KEY_SCOPE, MessageDispatchManager.SCOPE_GATEWAY_ONLY);
// You must specify a project, as message handlers are configured in projects.
mdm.dispatch(“MyProject”,
“MyMessageHandler”,
payload,
filterParams);