Solved

Launching an app in another server's process space...

Posted on 2001-09-06
2
128 Views
Last Modified: 2010-04-13
What I need to do is the following...

Server1 has an SQL db to which requests are submitted into a queue.

Server2 has the .exe's that are to be executed.

The client submits a request to server1 to have 1.exe and 2.exe run with some parameters.

I want server1 to launch 1.exe to run in server2's process space.  What is the proper and approved way to do this?  I know I could whip up a little service that would run on server2 and wait for requests to run .exe files, but that doesn't seem like a clean way to me.  What is the proper way to do this?  Effectively I don't want server1 to be running any of these .exe files.  (the .exe files are reports that are processor intensive and they fight with sqlservr for processor time).

Thanks.
0
Comment
Question by:timberbt
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 50 total points
ID: 6462028
Unless you want to build this capability from the ground up (and I doubt you want to do so as it's a lot of work to make it both right and secure) you have two basic options:

1) RPC
2) DCOM

Both are rather complex topics in light of a 50 pt question but both have many examples and sample applications in the Microsoft documentation and many other web sites.

If you app uses COM already, DCOM is a relatively easy extension.  Otherwise, RPC is more general in it's application but you don't have the COM subsystem to hide the complexity.
0
 
LVL 1

Author Comment

by:timberbt
ID: 6462053
Understood.... I wasn't looking for anything above and beyond the call of a 50pt question really.  Just what to look at was really all I needed...


Does everyone else concur that these would be the "proper" way of handling this sort of thing?  

Thanks Jhance.

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Fine Tune your automatic Updates for Ubuntu / Debian
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now