Before subscribing or publishing to a topic, You need to configure the ESB to point to the router address that would route all subsequent calls to correct ESB gateway and would reconnect to the next available gateway if the current gateway get disconnected.

//Configure router fail-over addresses in cases where multiple router services exists

ESB.AddRouterAddress("tcp://127.0.0.1:8001");
ESB.AddRouterAddress("tcp://127.0.0.1:8002");

//Configure default ESB router endpoint to localhost:8000/ESBGateway

ESB.ConfigWithAddress("tcp://127.0.0.1:8000")

Last edited Apr 10, 2012 at 12:53 PM by rpgmaker, version 8

Comments

No comments yet.