Glacier2 and proxies

ngambek2003ngambek2003 Member Budyanto HimawanOrganization: WMS Inc.Project: Casino back end services ✭✭
Hi,

If I have a setup where my Ice client talks to the Ice backend thru Glacier2 and I have a custom session that returns proxy to the client, when the client makes calls on the proxy, are the calls thru the proxy still routed through Glacier2?

I'm pretty sure the answer is yes. I'm just wondering how that really happens. Doesn't the proxy contain endpoint information?

Thanks

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi,

    Invocations on all proxies are sent via the router if the client has a default router configured (i.e., Ice.Default.Router is set). Ice essentially ignores the proxy's endpoint information in this situation.

    On the other hand, if you're selectively configuring proxies with a router (e.g., by calling ice_router), then you would also need to do this for each proxy you receive as the result of an invocation.

    Regards,
    Mark
Sign In or Register to comment.