delphi - DCOM needs to register server on both client and server computer -


i have written in delphi 2010 dcom server , client call server. able run client on different machine server's machine, need register server on both machines, beside security related things allow client access server.

i wondering if there know way needs minimum effort use client , server on 2 different machines, supposing both of client , server written , working. got far follows:

  1. run server.exe on server machine: server.exe /regserver
  2. run dcomcnfg , set security settings on server machine.
  3. define incoming rules in firewall let connection on server machine.
  4. run server.exe on client machine: server.exe /regserver
  5. now can run client.exe on client machine , use server's implemented interfaces.

what pushed me write question can't understand why need register server on client machine also. client application know interface , server guids , use them accordingly when creating server in implementation. dcom on client machine has enough information query dcom of server machine provide correct server having provided guid, , not need register server on client side (at least seems), need it.

best regards,

actually don't have register server on client machine. however, might need register server type library on client machine. have 2 options:

  1. register server's type library on client machine

  2. create datasnap server application (com-based) , use dcomconnection, socketconnection or soapconnection connect without registering server nor type library on client machine.

i've developed several com/com+ servers in last 15+ years. recommendation is: create datasnap com based servers , save lot of headache when deploying com server , client. easier deploy , maintain.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -