?
Solved

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

Posted on 2001-09-06
2
Medium Priority
?
143 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 150 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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…
With more and more companies allowing their employees to work remotely, it begs the question: What are some of the security risks involved with remote employees and what actions should we take to secure them?
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month13 days, 19 hours left to enroll

809 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