Home Help Center

Multiple Hosts in proxy string ???

DeepDiverDeepDiver Member Thomas MuellerOrganization: Freelance Software DeveloperProject: Project depend on Customers ✭✭✭
hi,

is it possible to define multiple hosts in a single proxy string?

e.g.:
Printer.Proxy=printer:tcp -h host1 -p 10000:tcp -h host2 -p 10000

second thing:
lets assume the proxy connects to host1 and host1 goes down,
will the proxy be reconnected to host2 on the next method invokation?

thanks a lot

tom

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    The answer is yes to both questions. This is called "multiple endpoints", and is used to implement redundant servers with automatic failover.

    Note, however, that Ice guarantees at-most-once invocations unless an operation is idempotent or nonmutating. So if a server goes down after a request has been sent, but before a response has been received, Ice will not automatically retry, as it could not guarantee at-most-once semantics (the server might have crashed before or after the request has been processed, and there is no way for the client to know).

    You find more information about this in the manual.
  • DeepDiverDeepDiver Member Thomas MuellerOrganization: Freelance Software DeveloperProject: Project depend on Customers ✭✭✭
    Cool!

    thanks alot!

    tom
Sign In or Register to comment.