Ink Context Dependency Injection
High-availability and Load-balancing
From the client side point of view we achive high-availability simply but adding many server-side endpoints to client configuration
public class HAClientRunner {
public static void main(String[] args) {
RMIClient client = new RMIClient();
client.addServer("tcp://localhost:5432");
client.addServer("tcp://localhost:5431");
client.addServer("tcp://localhost:5433");
CallContext cc = new CallContext();
cc.setValue("name", "you");
MyBean proxy = client.getBean("clientsidename", MyBean.class, cc);
String result = proxy.hello("me");
server.stop();
}
Server side high availability and loadbalancing
It is very simple....you have to code it on your own !!