Note that you'll need to use distinct router proxies for each Glacier2 session (with each proxy using a unique connection). So you'll need to set the router proxy and connection ID on each proxy obtained from Glacier2. For example:
Code:
Glacier2::RouterPrx router1 = Glacier2::RouterPrx::uncheckedCast(router->ice_connectionId("router1"));
Glacier2::RouterPrx router2 = Glacier2::RouterPrx::uncheckedCast(router->ice_connectionId("router2"));
base = router1->createSession("client1", "test1");
Glacier2::SessionPrx session1 = base->ice_connectionId("router1")->ice_router(router1);
base = router2->createSession("client2", "test2");
Glacier2::SessionPrx session2 = base->ice_connectionId("router2")->ice_router(router2);
This ensures that invocations on the session1 proxy are routed with router1 using the connection "router1" and that invocations on the session2 proxy are routed with router2 using the connection "router2".
Cheers,
Benoit.