Hello.
I have a custom AlarmPreview that get selected alarm and send a message to some EventServer in MFA, but Message is not reveived from target Event server and on the client, no errors occurs.
I use:
messageCommunication.TransmitMessage(myCommand, FQID_Owner_Of_Selected_Alarm, null, null);
In non-MFA context I use same method with null target endpoint and work’s fine.
Where is the problem ?
Thank’s.
Gigi
Whe you ask for the ‘messageCommunication’ instance - did you specify the correct MFA site’s ServerId ?
Hello.
My confusionary question
is related to post https://developer.milestonesys.com/s/question/0D50O00005HVv9iSAD/cant-read-childs-alarms-from-root.
My requirement is send a custom message from a root smartclient to some event server in MFA (that know as handle custom message, by custom plugin).
Following your suggestion, I have resolved navigating MFA gerarchy by:
- List sites = MasterSite.GetChildren();
and when found my event server:
- MessageCommunication _messageCommunicationChild = MessageCommunicationManager.Get( myTargetChild.FQID.ServerId );
and then send the message:
- _messageCommunicationChild.TransmitMessage(myCustomCommand, null, null, FQIDSourceServer);
In this matter, I have resolved my problem, but I have trouble in receive response message to smart client that have been originated request.
My question is: what is FQID that myTargetChild must use to return answer ? Root MFA Event Server or some FQID (how found it?) of client ? Or what eslse ?
Thanks. Ciao.
Gigi
In the receiving Smart Client, you also have to create a correct MessageCommunicationClient, and listen to your custom message. (Smart Client does not listen to all event servers in the MFA automatically).
You use FQID’s when you just want to send message to one receiver, e.g. a specific Smart Client, here you can get the FQID from Smart Client’s that sends a message in receiving Smart Client’s receive method, e.g. parameter ‘source’ - and use this for the ‘dest’ parameter when sending a reply.
But - if the Smart Client’s a logged in to same set of MFA sites - you should not have to communicate through any sub-sites?