|
Home > Archive > BizTalk Server Orchestration > September 2004 > Expection handling with MSMQT
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Expection handling with MSMQT
|
|
|
| Hi
We have some doubt in Expection handling with MSMQT.
we have a scenario wherein we receive a flat file from a MSMQT port,transform it by using map
and transmit it to MSMQ of another m/c.
While transmiting we initialize a correlation set inorder to correlate the response of this transmit.
The send shape for sending the message and receiving the response message are in same scope shape.
We have added a exception handler to this scope shape which handles System.Exception and which transmit the original message to temporary folder.
Orchestration works fine and we get desired output.
BUt if we remove the network code from the m/c(so that it cannot access the MSMQ of another m/c) the send should fail and
message should be transmited to temp folder.
The orchestration consumes the input file but doesn't raise an exception.No error are seen in event log also.
we also tried DeliveryFailure Exception,general exception in the exception object type.
Send port as delivery notification property =Trasmitted.
Number of retry=0
Why there are no error's in eventlog ???
why this exception is not handled ??
Regards
Amit
| |
| Iuliu Rus 2004-09-22, 9:56 pm |
| Every message that you send with MSMQT has an associated expiration time
that you can set (msg(MSMQT.TimeToReachQueue) = <number of seconds> ). The
default expiration time is 3 days. This means that even if the other
computer is not available, MSMQT will wait and re-try the delivery over 3
days. After the message expires an exception will be raised.
Make sure that you set the expiration time to a smaller value if you want
to test the exception handling code.
|
|
|
|
|