COM+ newbie needing advice on an n-client <-> 1 remote server design 
Author Message
 COM+ newbie needing advice on an n-client <-> 1 remote server design

Hello all,
I'm a newcomer to COM+ development and was inquiring advice
on how to design a remote processing scheme.  The problem
I have is that I have many COM clients requesting a single
service on a single remote server machine.

What I thought about doing is instantiating one and only one
COM+ component on the server, and have it handle the sevice
for the requesting client(s).  Some of the problems I'm
encountering are:

    1.  How do I make sure that the one server component
        is instantiated?  And how to I communicate that to
        my client(s) so that they won't try to CreateObject(...)
        again?

    2.  Concurrency.  I'm trying out a very simple locking
        scheme where the client(s) will sit in a spinlock, checking
        to see if service is available (checking a boolean
        'isAvailable' on the server component).  I'm guessing
        that transactions are going to have to come into play
        to maintain the concurrency.  Does anyone have any
        suggestions to implement a simple transaction scheme for
        this type of problem?

Any help would be appreciated!  I also tried to diagram the problem
below a little.

Thanks,
Kevin James

    ------------    ------------        ------------
    | client 1 |    | client 2 |   ...  | client n |
    ------------    ------------        ------------

            The clients pass a data file to a remote
            machine.  The remote machine houses an
            homegrown-built data extraction program
            (built in VC++, very CPU-intensive) that
            will extract specific data from the supplied
            client file, and returns it to the requesting
            client

    Remote Server Machine
    -------------------------------------------------
    |                                               |
    | 1 Service Component:                          |
    |   A single COM instance wrapping the service  |
    |                                               |
    |       ---------------------------------       |
    |       |                               |       |
    |       |   1 data-extraction service   |       |
    |       |                               |       |
    |       ---------------------------------       |
    |                                               |
    -------------------------------------------------



Fri, 16 Apr 2004 01:23:22 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. COM+ newbie needing advice on an n-client <-> 1 remote server design

2. <<<<<<<<ComboBox>>>>>>>>>>>>

3. Client / Server newbie needs some advice

4. <newbie>HELP!</newbie>

5. HELP >>>>>>WIN API <<<<<<<<<<

6. <<<`<<Is SQL SERVER supplied with Windows NT???>>>>>

7. *****>>>>> I NEED AN ALGORITHM !!! <<<<<*****

8. help me out please!!!!<<<<<<<<<<<<<<<<<<<<<<<thanks>>>>>>>>>>>>>>>>>>>>>>>>

9. <<<<Newbie Setup Wizard problem>>>>>

10. <><><>HELP<><><> PCMCIA Motorola Montana 33.6

11. <<<<HELP- OLE container Control>>>>>>>>>

12. VB5<->RDO2<->ODBC<->ORACLE Procedure Problem

 

 
Powered by phpBB® Forum Software