|
|
| newsgroup user 2004-02-08, 8:42 am |
| We have created a lightweight AIC component. The component is instantiated by a MSMQ receive function.
AIC performs a task of relatively long duration (up to 10 seconds).
It seems that AIC doesn't get instantiated in a multithreaded way, but to process one request at time.
Is it possible to process more requests in parallel?
Thanks in advance,
ZV
| |
| Suresh Lenin 2004-02-08, 8:42 am |
| Make sure the componet that you are using is multithreaded AIC component
(not VB 6 component). If the component is multithreaded AIC componet then
BizTalk will process the documents in prallel.
HTH,
Suresh Lenin
This posting is provided "AS IS" with no warranties, and confers no rights.
| |
| Nick Malik 2004-02-08, 8:42 am |
| Hello
Can you share what language you wrote your component in? If the language is
Visual Basic 6, then the VB environment will force the receive function to
operate in Apartment Threaded mode. This prevents any real multithreading.
--- Nick
"Zdravko Vukovic" <zdravko_vukovicREMOVETHIS@sidus.hr> wrote in message
news:EC214D32-D425-40E0-BB2C-7421CFD83638@microsoft.com...
> We have created a lightweight AIC component. The component is instantiated
by a MSMQ receive function.
> AIC performs a task of relatively long duration (up to 10 seconds).
> It seems that AIC doesn't get instantiated in a multithreaded way, but to
process one request at time.
> Is it possible to process more requests in parallel?
>
> Thanks in advance,
>
> ZV
>
| |
|
| The component is written in VB.NET
ZV
"Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message
news:XB8Vb.236940$I06.2662611@attbi_s01...
> Hello
>
> Can you share what language you wrote your component in? If the language
is
> Visual Basic 6, then the VB environment will force the receive function to
> operate in Apartment Threaded mode. This prevents any real
multithreading.
>
> --- Nick
>
> "Zdravko Vukovic" <zdravko_vukovicREMOVETHIS@sidus.hr> wrote in message
> news:EC214D32-D425-40E0-BB2C-7421CFD83638@microsoft.com...
instantiated[color=blue]
> by a MSMQ receive function.
to[color=blue]
> process one request at time.
>
>
| |
| Suresh Lenin 2004-02-09, 11:36 am |
| In the BizTalk Server 2002 Toolkit for Microsoft .NET there is one sample
for AIC in VB that is located in
\Program Files\Microsoft BizTalk Server\NET Toolkit\AppInt\VB
Follow the instruction in the readme.txt and test it. Once it worked as
specified in the instruction follow the instruction below to test the
parallel processing:
1. Open the AppIntVB.sln
2. Open AppIntVB.vb
3. Introduce delay atleast 1 min 15 Sec.
For this add this code
System.Threading.Thread.Sleep(75000) '1 min 15 Second delay
4. Build the solution
5. Create a Receive Function or use submit.wsf to submit a document to it.
6. Submit a document.
7. Submit another document after 30 Seccond delay.
7. In the c:\Temp folder once you see the Output.xml rename it to
Output-1.xml.
8. Now you will see another file Output.xml.
9. Note the creation time for both the files under properties.
9. You will notice the prallel processing (time difference in seconds not
in minute).
HTH,
Suresh Lenin
This posting is provided "AS IS" with no warranties, and confers no rights.
| |
| Nick Malik 2004-02-10, 1:39 am |
| Hello,
You say that the task takes 10 seconds. This is a really long task. If you
don't mind, please share some details about what you are doing.
I'm wondering if there's something you are doing in the AIC that is causing
the next thread to block until the first thread is done with a particular
resource.
--- Nick
"ZV" <zdravko_vukovicREMOVETHIS@sidus.hr> wrote in message
news:%23xKZMiu7DHA.2432@TK2MSFTNGP10.phx.gbl...
> The component is written in VB.NET
>
> ZV
>
> "Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message
> news:XB8Vb.236940$I06.2662611@attbi_s01...
language[color=blue]
> is
to[color=blue]
> multithreading.
> instantiated
> to
>
>
| |
| Zdravko Vukovic 2004-02-10, 1:39 am |
| Hi,
Thank you all for your help so far
It seems that the AIC correctly processes the documents in parallel, but
the problem seems to be when it executes a .NET Remoting call.
The AIC executes a .NET Remoting call to a component which converts an image
to PDF and this can
be lenghty because there can be several pages to convert.
Regards,
ZV
"Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message
news:VT5Wb.211889$Rc4.1722074@attbi_s54...
> Hello,
>
> You say that the task takes 10 seconds. This is a really long task. If
you
> don't mind, please share some details about what you are doing.
>
> I'm wondering if there's something you are doing in the AIC that is
causing
> the next thread to block until the first thread is done with a particular
> resource.
>
> --- Nick
>
> "ZV" <zdravko_vukovicREMOVETHIS@sidus.hr> wrote in message
> news:%23xKZMiu7DHA.2432@TK2MSFTNGP10.phx.gbl...
> language
function[color=blue]
> to
message[color=blue]
but[color=blue]
>
>
| |
| Nick Malik 2004-02-11, 3:38 pm |
| and if your .NET remoting call is implemented as a Singleton, then your
second thread will block while the first one works the file.
Have you tried to create a little test app that spawns a dozen threads and
just calls your remoting object? I'm willing to bet you won't get
multithreaded behavior from it.
In other words, it sounds like the problem is not in Biztalk.
--- Nick
"Zdravko Vukovic" <zdravko_vukovicREMOVETHIS@sidus.hr> wrote in message
news:ORYoGW%237DHA.2540@TK2MSFTNGP11.phx.gbl...
> Hi,
>
> Thank you all for your help so far
>
> It seems that the AIC correctly processes the documents in parallel, but
> the problem seems to be when it executes a .NET Remoting call.
> The AIC executes a .NET Remoting call to a component which converts an
image
> to PDF and this can
> be lenghty because there can be several pages to convert.
>
> Regards,
>
> ZV
>
> "Nick Malik" <nickmalik@hotmail.nospam.com> wrote in message
> news:VT5Wb.211889$Rc4.1722074@attbi_s54...
> you
> causing
particular[color=blue]
> function
> message
seconds).[color=blue]
> but
>
>
|
|
|
|