If you're looking for a "cluster aware" Remote EJB lookup, we don't support that. You can only specify a particular host/port. Is the target host/port information available at deployment-time or is it not known until run time? If it's just a matter of not hardcoding the information, you can just
configure it as an ejb-ref and set the target corbaname url when mapping the ejb-ref in sun-ejb-jar.xml ( as shown by the FAQ).
If you literally don't know the target host/port until run-time, the only possibility is creating a
specific new InitialContext() for each target host/port.
[Message sent by forum member 'ksak' (ksak)]
http://forums.java.net/jive/thread.jspa?messageID=344905