Waqar Sadiq
2008-07-14 13:03:52 UTC
I have a custom SEND adapter. This adapter processes files. The adapter is
developed to process a large number of messages - into millions. Large
files get dropped in the drop locations being monitored by receive FILE
adapters. They debatch them into single messages and publish them to the
message box. The send adapter keeps processing the messages as it receives
them. It does not respond to each message but rather when it determines
that it has processed the last message from a file, it is supposed to
generate a single message that contains the summary of the file processed.
The idea is that this summary message can then be subscribed to by a receive
port that can put it in a file or alternatively an orchestration can take
that message and generate a more detailed acknowledgement or file processing
report from it. In either case, the SEND adapter does not care.
I am using the Microsoft's custom adapter framework to develop my adapter.
I have got 2 questions.
1) The adapter framework allows you to return response of a message.
However, in my case the repose to processing each message is null because I
do not have a single response to each message. Instead, my adapter starts a
timer and resets it each time it receives a message. After a preconfigured
length of time has passed without receiving another message from that batch,
it determines that all messages from the file have been processed. It then
generates that message. How do I publish this summary message to the
message box?
2) I am noticing that the incoming messages are being put in the suspended -
resumable state. What do I need to do to delete those messages.
Thanks.
developed to process a large number of messages - into millions. Large
files get dropped in the drop locations being monitored by receive FILE
adapters. They debatch them into single messages and publish them to the
message box. The send adapter keeps processing the messages as it receives
them. It does not respond to each message but rather when it determines
that it has processed the last message from a file, it is supposed to
generate a single message that contains the summary of the file processed.
The idea is that this summary message can then be subscribed to by a receive
port that can put it in a file or alternatively an orchestration can take
that message and generate a more detailed acknowledgement or file processing
report from it. In either case, the SEND adapter does not care.
I am using the Microsoft's custom adapter framework to develop my adapter.
I have got 2 questions.
1) The adapter framework allows you to return response of a message.
However, in my case the repose to processing each message is null because I
do not have a single response to each message. Instead, my adapter starts a
timer and resets it each time it receives a message. After a preconfigured
length of time has passed without receiving another message from that batch,
it determines that all messages from the file have been processed. It then
generates that message. How do I publish this summary message to the
message box?
2) I am noticing that the incoming messages are being put in the suspended -
resumable state. What do I need to do to delete those messages.
Thanks.