Solved

Remote Async AvtiveX exe

Posted on 2001-06-14
11
218 Views
Last Modified: 2010-05-02
What I have is users who request reports, at the moment the reports run multiple queries that take some time to run, which lockes their workstation.  What I would like them to do is start an ActiveX exe, on a server, to run asynchronously which will create and save the reports then notify the user via e-mail that they are ready for collection.  This allows the user to get on with his/her business and even log off the workstation/go home etc.

I have created an activeX exe that does the business and it works well if it runs on the client machine (not what I want).  

I cannot get my head round the method to install it on the server and then let the client machines know it is available.

Using VB6sp5, NT4, TCP/IP network

OK, I know(??) there must be some document somewhere that will tell me how to do this but....

TIA
Richard
0
Comment
Question by:RichardCorrie
  • 4
  • 3
  • 2
  • +1
11 Comments
 
LVL 2

Expert Comment

by:chandukb
ID: 6190945
You need to use DCOM to call the ActiveXExe methods.

Client Program can call DCOM methods asynchronously, but I am not sure about logging off the workstation before comepleting the task.


Chandu
0
 

Expert Comment

by:rhubarbtwo
ID: 6191033
I have a similar problem where I want to run an activeX.exe on a remote server. Have you seen the article in the MSDN library titled 'The Remote Automation Enigmas', it was listed when I did a search for 'vbr'?
0
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6191119
After installing your Active X Exe you need to
1) Register the server by running as follows:
   Run Myserver / regserver

2) run DCOMCNFG to configure its permissions

3) On the client run CLIREG32 to register the servers .vbr file. (This tells the client where the server lives)

If you write your server with a method to accept its requests into some form of queue, then process them. It is fine to log off the client. If you simply call a class to do the job you may and I emphasise may experience some problems. ie. The call from your client to the server needs to complete fully before logging off to be sure of results. So if I were you I would queue the requests.

Regards
Andrew
0
 

Expert Comment

by:rhubarbtwo
ID: 6191352
I see that DCOM supercedes Remote Automation

Have you seen http://support.microsoft.com/support/kb/articles/Q266/7/17.ASP
0
 
LVL 5

Expert Comment

by:AndrewDev
ID: 6191380
Thanks rhubarbtwo
That was the article I was looking for to append to my above post. It describes more fully what I put in the steps above.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 2

Expert Comment

by:chandukb
ID: 6191562

>
If you simply call a class to do the job you may and I emphasise may experience some problems. ie. The call from your client to the server needs to complete fully before
logging off to be sure of results. So if I were you I would queue the requests.
>


AndrewDev, is absolutely right, I just finished an DCOM app with asynchronous events and the client has to wait until the server finishes the called method.  And I don't know what u means by 'queue the requests'.  Any Articles or info???

Chandu


0
 

Expert Comment

by:rhubarbtwo
ID: 6191854
AndrewDev, can you help me further with my question 'Manually setting up DCOM Client/Server app' just posted?
0
 
LVL 10

Author Comment

by:RichardCorrie
ID: 6192188
thanks for your responses, looking good. I will check out dcomconfig etc.

Still looking for the client to be able to log off/continue without having to wait for the server exe to complete.

How can I queue as request on the server?

Richard
0
 

Expert Comment

by:rhubarbtwo
ID: 6194615
Could you employ a timer in the activeX component which kicks off the job, and set the necessary properties required for the job prior to enabling the timer object; as in Pino Carafa's example at http://www.carobit.com/Feedback/ShowThread.asp?ThreadNumber=20010402084949Pino%20Carafa

Perhaps the call to the timer could be queued in a collection in the activeX component?
0
 
LVL 5

Accepted Solution

by:
AndrewDev earned 75 total points
ID: 6194954
What I ment by queue the requests was create a queue using say a collection in the Active X Server which contains your request so that the client-server interaction is completed by putting the request on the queue.

The queue would be serviced by a timer so that the actual real work does not involve the client at all. It can be logged off once it has submitted its job.

Hope this helps
Andrew

0
 
LVL 10

Author Comment

by:RichardCorrie
ID: 6216239
Andrew has given me the road to an answer; many thanks to all who contributed

Richard
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 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

13 Experts available now in Live!

Get 1:1 Help Now