摘自Delphi Help:
To connect to remote application servers using DCOM, use the
TDCOMConnection component To connect client applications to remote
application servers using TCP/IP sockets, use TSocketConnection
instead. To connect client applications to remote application servers
using OLEnterprise, use TOLEnterpriseConnection. To connect to remote
application servers using CORBA, use the TCORBAConnection component.
Using Socket connections
......
When using sockets, there is no protection on the server against client systems failing before they release a reference to interfaces on the application server. While this results in less message traffic than when using DCOM (which sends periodic keep-alive messages), this can result in an application server that can抰 release its resources because it is unaware that the client has gone away.
而Using DCOM connections, Using OLEnterprise, Using CORBA
connections 都能 fail-over,
所以,结论就是不要使用:Socket connections