Developing a shared application/service

  • Thread starter Thread starter G-Fit
  • Start date Start date
G

G-Fit

Hello group,

I have several ASP.NET websites using (so far) a console application
(from a collection of parameters, this application builds a PDF file through
several professional tools in DOS mode). The websites launch the application
when appropriate, and we know where the PDF file will be when the console
application is finished (that one also create a log file to state if every
step went fine, or what errors happened).
Here is what I would like :
* To be able to interact with the application, in a synchronous way. One
website tells it "Do step 1", then when step 1 is done the application
answers "Done", or answers there was an error and which error, then the
website tells "Do step 2", etc. until the last step is done, so the website
can show a message like "All went OK, finished now" or "Something went bad
here, here is the detail". (so far, I have no idea when all the tasks are
done...)
* That several users be able to use the same and/or different websites at
the same time, which launch the application (with the current solution it is
OK, but if the application get stuck the processus runs forever and takes
ressources...)

I use the word "application" because it is what I use now, but the question
is : what should I use ? I heard and read about web services and .NET
remoting, but I don't if they are possible/good solutions, or if they are
the only ones.

Thanks
Karine
 
Hello Karine,

Thanks for your post. As I understand, you have a console application which
will be used by and interact with several ASP .NET web applications. Please
corect me if there is any misunderstanding. I'd like to share the following
information with you:

Coule you please tell me whether the ASP .NET web applications reside on
the same system with the console application? If they are located on the
same system, there is no need to use web services or .NET remoting. I
recommend that you can create a class library which exports classes to
build a PDF file step by step to be used by your web applications. If you
want to implement a console application, your web applications can create
the process of the console app, redirect its output/input, and use
synchronous objects say, mutex (System.Threading.Mutex), to do steps in a
synchronous way.

Please feel free to let me know if you have any problems or concerns.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi, Karine

I will see what I can do to get you some suggestions on this issue

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "G-Fit" <[email protected]>
| Subject: Developing a shared application/service
| Date: Mon, 1 Mar 2004 15:15:57 +0100
| Lines: 30
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: aph-aug-105-2-1-24.w217-128.abo.wanadoo.fr
217.128.220.24
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:126477
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| Hello group,
|
| I have several ASP.NET websites using (so far) a console application
| (from a collection of parameters, this application builds a PDF file
through
| several professional tools in DOS mode). The websites launch the
application
| when appropriate, and we know where the PDF file will be when the console
| application is finished (that one also create a log file to state if every
| step went fine, or what errors happened).
| Here is what I would like :
| * To be able to interact with the application, in a synchronous way. One
| website tells it "Do step 1", then when step 1 is done the application
| answers "Done", or answers there was an error and which error, then the
| website tells "Do step 2", etc. until the last step is done, so the
website
| can show a message like "All went OK, finished now" or "Something went bad
| here, here is the detail". (so far, I have no idea when all the tasks are
| done...)
| * That several users be able to use the same and/or different websites at
| the same time, which launch the application (with the current solution it
is
| OK, but if the application get stuck the processus runs forever and takes
| ressources...)
|
| I use the word "application" because it is what I use now, but the
question
| is : what should I use ? I heard and read about web services and .NET
| remoting, but I don't if they are possible/good solutions, or if they are
| the only ones.
|
| Thanks
| Karine
|
|
|
 
Back
Top