08-25-04 09:19 AM
On Mon, 23 Aug 2004 16:33:25 GMT, Gilles [MSFT] wrote:
> Hello,
>
>
> The MessageID (http://msdn.microsoft.com/library/e....asp?frame=true)
> is a unique identifier for the message. It is a Guid. the previous page sh
ows the COM documentation but the .NET property behaves the same.
>
> Thanks,
> -Gilles.
Hi Nick, Gilles,
I'm assuming you need this value for some kind of logging purpose...
I've had a conversation with Hans Peter Mayr a while ago, and he told me
the following things about those Guids:
"I recommend that you avoid using MessageID to try and link BAM to HAT.
The problem is that msgID is only created for messages at the point that
they are enqueued into the message box. So for messages that are created in
an orchestration, for example, they actually don't have a msgID unless and
untill they are persisted to the message box."
"Also, be aware that the interchangeID is associated with the raw message
that arrives to the pipeline. If this raw interchange actually contains
multiple individual messages, they will all get the same InterchangeID,
each message would get it's own MessageID"
"In fact, there may be many messages, each with it's own ID, in the inbound
and outbound pipelines. For example, if the message arrives encrypted, it
will have one msgID for the raw message and another for the decrypted
message. Remember that all messages are immutable, so every time the
message is changed at all, you get a new msgID"
Simply put, you cannot simply assume any of these IDs will stay the same
until you know the entire system they go through and even then it's
relatively dangerous to assume they stay the same.
What I would recommend is using a pipeline component in the receive
pipeline before or after the ffdisassembler component and promote a
property, inserting your own GUID. This way, that value is 100% guaranteed
to be unique throughout the entire process, no matter that kind of
permutations you apply to the message itself, as long as you don't remove
that field or change it's value ofcourse.
feel free to e-mail me if you need more information!
HTH,
Martijn Hoogendoorn
[ Post a follow-up to this message ]
|