|
Home > Archive > BizTalk Server Applications Integration > July 2004 > STOP AIC while processing in BTS2002
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 |
STOP AIC while processing in BTS2002
|
|
| wistler 2004-06-26, 10:53 am |
| hi
i have an AIC written in VB.
when i send XML doc using receive funtion.
AIC is doing the business logic.
how doi stop AIC processing if i send the wrong XML file input.
any ideas
thanks
| |
| Jan Eliasen 2004-06-26, 10:53 am |
| Hi
Well, there are many possible cases her:
1. Are you using pass-through on the receive function?
If yes, then let the AIC validate the input against the schema for the
document. If the validation fails then just close the AIC.
If no, then does the channel validate the input?
If yes, then the AIC will always get the correct input, I would
think.
If no, then let the AIC validate the input against the schema for
the document. If the validation fails then just close the AIC.
If my answer doesn't answer your question, then try to explain your
setup a bit in more detail and explain when it fails.
Jan Eliasen
On Tue, 22 Jun 2004 14:56:02 -0700, "wistler"
<wistler@discussions.microsoft.com> wrote:
>hi
>i have an AIC written in VB.
>when i send XML doc using receive funtion.
>AIC is doing the business logic.
>how doi stop AIC processing if i send the wrong XML file input.
>
>
>any ideas
>thanks
--
Jan Eliasen, representing himself and not the company he works for.
| |
| wistler 2004-06-26, 10:53 am |
| Lets say i am passing Correct data.
then i just wanna stop the current AIC processing.
how do i Kill MY AIC.
"Jan Eliasen" wrote:
> Hi
>
> Well, there are many possible cases her:
>
> 1. Are you using pass-through on the receive function?
>
> If yes, then let the AIC validate the input against the schema for the
> document. If the validation fails then just close the AIC.
>
> If no, then does the channel validate the input?
>
> If yes, then the AIC will always get the correct input, I would
> think.
>
> If no, then let the AIC validate the input against the schema for
> the document. If the validation fails then just close the AIC.
>
> If my answer doesn't answer your question, then try to explain your
> setup a bit in more detail and explain when it fails.
>
> Jan Eliasen
>
> On Tue, 22 Jun 2004 14:56:02 -0700, "wistler"
> <wistler@discussions.microsoft.com> wrote:
>
>
> --
> Jan Eliasen, representing himself and not the company he works for.
>
| |
| Nick Malik 2004-06-26, 10:53 am |
| Well, you don't really. Biztalk is designed to be reliable. When it picked
up the file, you are supposed to have confidence that it will process 100%
of it.
Which means, if you kill the biztalk services, which you can, your AIC will
stop, but the moment you restart biztalk services, your AIC will pick up
where it left off.
You can cause corruption of the system if you do things like power-off the
server. It's ineffective anyway because when you turn the server back on,
the BTS transaction picks up where it left off.
Sorry, but that's pretty much the nature of the beast. I'd recommend that,
for unit testing, you use small data files at first, and work up to larger
ones to test gentle stress conditions, race conditions, and multithreading.
--- Nick
"wistler" <wistler@discussions.microsoft.com> wrote in message
news:46F9FC25-548D-49DF-B4DD-ED6777D1B8F2@microsoft.com...[vbcol=seagreen]
> Lets say i am passing Correct data.
> then i just wanna stop the current AIC processing.
> how do i Kill MY AIC.
>
> "Jan Eliasen" wrote:
>
| |
| Jan Eliasen 2004-06-26, 10:53 am |
| I really don't see the problem.
If you want to stop your AIC from processing, then program it to not
do anything more after it has discovered that the data is correct.
Just let the code run to an end.
Jan Eliasen
On Wed, 23 Jun 2004 10:43:05 -0700, "wistler"
<wistler@discussions.microsoft.com> wrote:
[vbcol=seagreen]
>Lets say i am passing Correct data.
>then i just wanna stop the current AIC processing.
>how do i Kill MY AIC.
>
>"Jan Eliasen" wrote:
>
--
Jan Eliasen, representing himself and not the company he works for.
| |
| Cristian Salvan [MSFT] 2004-07-15, 8:48 pm |
| The way to stop an AIC from processing is to just return from the AIC
processing method (Execute for Pipeline Components and ProcessMessage for
AppIntegration). The return value (HRESULT) will let BizTalk know whether
the message was properly processed or whether there was an error.
Of course you can always terminate the current AIC thread, but that will be
interpreted by BizTalk as a failed submission, and would actually be a bad
design idea.
HTH,
Cristi
|
|
|
|
|