Home All Groups Group Topic Archive Search About

ONE process at a time

Author
24 Mar 2006 2:04 PM
Alan Wang
Hi there,

I am having a web application which has OpenOffice running as backend. The
whole web application runs great if there is only one request at a time. The
web application will mess up if there are more than one requests at same
time. My question is what should I do to only allow one process  at same
time for my web application. In another words, The second request will wait
until the first one has finished if there are more than one request at same
time.

Thanks in advanced

Alan

Author
24 Mar 2006 3:46 PM
Simon Verona
Use message queuing (MSMQ)...

Have a seperate standalone process that reads one entry off the queue,
processes it and then passes back the result.....

Google for Microsoft Message Queuing.

Regards
Simon


--
================================
Simon Verona
Dealer Management Service Ltd
Stewart House
Centurion Business Park
Julian Way
Sheffield
S9 1GD

Tel: 0870 080 2300
Fax: 0870 735 0011

Show quoteHide quote
"Alan Wang" <w***@vdata.com> wrote in message
news:upcEev0TGHA.1160@TK2MSFTNGP09.phx.gbl...
> Hi there,
>
> I am having a web application which has OpenOffice running as backend. The
> whole web application runs great if there is only one request at a time.
> The
> web application will mess up if there are more than one requests at same
> time. My question is what should I do to only allow one process  at same
> time for my web application. In another words, The second request will
> wait
> until the first one has finished if there are more than one request at
> same
> time.
>
> Thanks in advanced
>
> Alan
>
>
>
>
Author
24 Mar 2006 4:03 PM
Alan Wang
I will think about that and thanks for your reply.

Alan

Show quoteHide quote
"Simon Verona" <nom***@nomail.zzz> wrote in message
news:eUE0do1TGHA.4772@TK2MSFTNGP09.phx.gbl...
> Use message queuing (MSMQ)...
>
> Have a seperate standalone process that reads one entry off the queue,
> processes it and then passes back the result.....
>
> Google for Microsoft Message Queuing.
>
> Regards
> Simon
>
>
> --
> ================================
> Simon Verona
> Dealer Management Service Ltd
> Stewart House
> Centurion Business Park
> Julian Way
> Sheffield
> S9 1GD
>
> Tel: 0870 080 2300
> Fax: 0870 735 0011
>
> "Alan Wang" <w***@vdata.com> wrote in message
> news:upcEev0TGHA.1160@TK2MSFTNGP09.phx.gbl...
>> Hi there,
>>
>> I am having a web application which has OpenOffice running as backend.
>> The
>> whole web application runs great if there is only one request at a time.
>> The
>> web application will mess up if there are more than one requests at same
>> time. My question is what should I do to only allow one process  at same
>> time for my web application. In another words, The second request will
>> wait
>> until the first one has finished if there are more than one request at
>> same
>> time.
>>
>> Thanks in advanced
>>
>> Alan
>>
>>
>>
>>
>
>
Author
24 Mar 2006 4:09 PM
Alan Wang
Simon,

There is a problem by using MSMQ. My application need to get size the doc
back from OpenOffice processing in order to do next step. My understanding
is MSMQ doesn't return  value back from the process.

Any suggestions???

Alan
Show quoteHide quote
"Simon Verona" <nom***@nomail.zzz> wrote in message
news:eUE0do1TGHA.4772@TK2MSFTNGP09.phx.gbl...
> Use message queuing (MSMQ)...
>
> Have a seperate standalone process that reads one entry off the queue,
> processes it and then passes back the result.....
>
> Google for Microsoft Message Queuing.
>
> Regards
> Simon
>
>
> --
> ================================
> Simon Verona
> Dealer Management Service Ltd
> Stewart House
> Centurion Business Park
> Julian Way
> Sheffield
> S9 1GD
>
> Tel: 0870 080 2300
> Fax: 0870 735 0011
>
> "Alan Wang" <w***@vdata.com> wrote in message
> news:upcEev0TGHA.1160@TK2MSFTNGP09.phx.gbl...
>> Hi there,
>>
>> I am having a web application which has OpenOffice running as backend.
>> The
>> whole web application runs great if there is only one request at a time.
>> The
>> web application will mess up if there are more than one requests at same
>> time. My question is what should I do to only allow one process  at same
>> time for my web application. In another words, The second request will
>> wait
>> until the first one has finished if there are more than one request at
>> same
>> time.
>>
>> Thanks in advanced
>>
>> Alan
>>
>>
>>
>>
>
>
Author
25 Mar 2006 12:16 PM
Simon Verona
Yes, you can set up a return queue and bring back a result - this needs
serializing but it works fine

I can dig out somw code if you cant find an example

Regards
Simon

--
================================
Simon Verona
Dealer Management Service Ltd
Stewart House
Centurion Business Park
Julian Way
Sheffield
S9 1GD

Tel: 0870 080 2300
Fax: 0870 735 0011

Show quoteHide quote
"Alan Wang" <w***@vdata.com> wrote in message
news:%23%23wek11TGHA.2444@TK2MSFTNGP14.phx.gbl...
> Simon,
>
> There is a problem by using MSMQ. My application need to get size the doc
> back from OpenOffice processing in order to do next step. My understanding
> is MSMQ doesn't return  value back from the process.
>
> Any suggestions???
>
> Alan
> "Simon Verona" <nom***@nomail.zzz> wrote in message
> news:eUE0do1TGHA.4772@TK2MSFTNGP09.phx.gbl...
>> Use message queuing (MSMQ)...
>>
>> Have a seperate standalone process that reads one entry off the queue,
>> processes it and then passes back the result.....
>>
>> Google for Microsoft Message Queuing.
>>
>> Regards
>> Simon
>>
>>
>> --
>> ================================
>> Simon Verona
>> Dealer Management Service Ltd
>> Stewart House
>> Centurion Business Park
>> Julian Way
>> Sheffield
>> S9 1GD
>>
>> Tel: 0870 080 2300
>> Fax: 0870 735 0011
>>
>> "Alan Wang" <w***@vdata.com> wrote in message
>> news:upcEev0TGHA.1160@TK2MSFTNGP09.phx.gbl...
>>> Hi there,
>>>
>>> I am having a web application which has OpenOffice running as backend.
>>> The
>>> whole web application runs great if there is only one request at a time.
>>> The
>>> web application will mess up if there are more than one requests at same
>>> time. My question is what should I do to only allow one process  at same
>>> time for my web application. In another words, The second request will
>>> wait
>>> until the first one has finished if there are more than one request at
>>> same
>>> time.
>>>
>>> Thanks in advanced
>>>
>>> Alan
>>>
>>>
>>>
>>>
>>
>>
>
>