Multiple Server Question

I have been working with the Hello World CORBA example and Sun抯 ORB implementation in JDK 1.4.2.

http://java.sun.com/j2se/1.4.2/docs/guide/idl/jidlExample.html

The example was fairly easy to run, but I could not run multiple servers and get them to respond. Not sure if this is possible or if RMI is what I need.

For example, if I start two servers, call them A & B, and the A server responds, the B server will never respond, even if the A server is then shutdown. My goal is to have multiple servers processing client requests for the same object.

Any help or suggestions would be greatly appreciated.

Regards,

ed

[666 byte] By [echwalika] at [2007-10-3 6:00:47]
# 1
There is no load balancing in RMI, but you can write it yourself. At one time I wrote a load-balancing Registry but that didn't seem like the right answer, you need a proxy for the actual servers obeying the same interface and despatching every call, which the Registry doesn't do.
ejpa at 2007-7-15 0:42:42 > top of Java-index,Core,Core APIs...
# 2
Let me get this right. Did you write the proxy? If so, essentially I would have one server component acting as the proxy, that dispatches to servers listening on other ports?
echwalika at 2007-7-15 0:42:42 > top of Java-index,Core,Core APIs...
# 3
Your question just repeats what I wrote, except that you added 'different ports'. There's no inherent requirement for different ports. Presumably these servers being load-balanced are on different machines, otherwise what's the point? so
ejpa at 2007-7-15 0:42:42 > top of Java-index,Core,Core APIs...
# 4

I am trying to replicate an object either locally or remotely. There has got to be a way to do this. In short, I am trying to run serveral CORBA servers locally or distributed over a network, or both.

Further testing of this SUn implemenation does not even let me run two servers on different ports; at least I cannot find a way to do it yet. The ideal situation would be to run two CORBA servers on the same machine on the same port, where the orbd process would do some load balancing. However, I can hack my own load-balancing scheme if I can just run two servers on different ports.

In short, the goal is to distribute and replicate an object on the same machine and/or different machines.

Regards

ed

echwalika at 2007-7-15 0:42:42 > top of Java-index,Core,Core APIs...
# 5
There are implementations of CORBA that will do all that for you.
ejpa at 2007-7-15 0:42:42 > top of Java-index,Core,Core APIs...