Hello,
has somebody expiriences with the NAS and the ComCom in this way?:
With the Communication Component 2 of Navision it is possible to add more than one Adapter (even different kind of Adapters: e.g. a MessageQueue-, a NamedPipe- and a Socket-Adapter) to one instance of a Communication Component. But I only have one event (the event from the Component "MessageReceived") to catch incoming messages.
Here's my question: How can I decide from which Adaptor this message comes? Does anybody have a code example?
Thanks
Christian
0
Comments
(as soon as I get rid of my irritating active directory error I'll try to verify this little interesting issue)
yes, I've tried that one... The Method .source() only works with the SocketAdapter. You can get the IP-Adress where the request comes from. But that isn't enough. There's no information about the socket-port or the instance-no.
But thank you as well!!!
Greetz
Christian
I guess you need to get the message itself tagged with ID, like the first 10 characters, but that might be hard to do if you don't have ownership of the creating instance..
:?
I use 3 chars in each message to ID what is arriving.
Following is a complete codeunit (SingleInstance) and I use a Form with two buttons sending either text or a xml-doc (resp. function).
On the other hand I create the message in this example :S, a feature we all not necessary have