Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 240
  • Last Modified:

Remote Async AvtiveX exe

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
RichardCorrie
Asked:
RichardCorrie
  • 4
  • 3
  • 2
  • +1
1 Solution
 
chandukbCommented:
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
 
rhubarbtwoCommented:
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
 
AndrewDevCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
rhubarbtwoCommented:
I see that DCOM supercedes Remote Automation

Have you seen http://support.microsoft.com/support/kb/articles/Q266/7/17.ASP
0
 
AndrewDevCommented:
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
 
chandukbCommented:

>
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
 
rhubarbtwoCommented:
AndrewDev, can you help me further with my question 'Manually setting up DCOM Client/Server app' just posted?
0
 
RichardCorrieAuthor Commented:
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
 
rhubarbtwoCommented:
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
 
AndrewDevCommented:
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
 
RichardCorrieAuthor Commented:
Andrew has given me the road to an answer; many thanks to all who contributed

Richard
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now