STOP AIC while processing in BTS2002
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > STOP AIC while processing in BTS2002




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    STOP AIC while processing in BTS2002  
wistler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

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






[ Post a follow-up to this message ]



    Re: STOP AIC while processing in BTS2002  
Jan Eliasen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

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.





[ Post a follow-up to this message ]



    Re: STOP AIC while processing in BTS2002  
wistler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

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.
>





[ Post a follow-up to this message ]



    Re: STOP AIC while processing in BTS2002  
Nick Malik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

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:
> 







[ Post a follow-up to this message ]



    Re: STOP AIC while processing in BTS2002  
Jan Eliasen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

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.





[ Post a follow-up to this message ]



    Re: STOP AIC while processing in BTS2002  
Cristian Salvan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-16-04 01:48 AM

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








[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:49 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register