Solved

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

Posted on 2001-09-06
2
133 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

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…
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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