Java Reference
In-Depth Information
in the command line parameter or system property to both orbd and the server
application rather than taking the default localhost. Thus we start orbd and the
server as follows:
start orbd -ORBInitialHost myserver.somewhere.com
-ORBInitialPort 3001
java -classpath build/classes
-Dorg.omg.CORBA.ORBInitialHost=myserver.somewhere.com
-Dorg.omg.CORBA.ORBInitialPort = 3001
javatech.cor19.server.impl.Cor19Server
And then start the client on a different machine like this:
java -classpath build/classes javatech.cor19.client.Client
-ORBInitialHost myserver.somewhere.com -ORBInitialPort 3001
19.8 Conclusion
This completes our introduction to CORBA technology. As we have seen,
CORBA can provide much of the same basic functionality as RMI, but with
a somewhat different programming paradigm. The general concepts are simi-
lar to the RMI programming model - clients and servers, stubs and skeletons,
a naming service, and some behind-the-scenes plumbing that makes it easy to
make complex remote method calls to another JVM. However, dealing with the
CORBA complexities amounts to a significantly different, and generally more
difficult, programming effort compared to RMI. As stated at the beginning of
the chapter, the main advantage of CORBA is that it is language and platform
independent. Non-Java clients can have full access to a server if it is written in
CORBA and the interfaces are published in an IDL file.
19.9 Web Course materials
The files for the programs discussed here are available on the Web Course Chapter
19. Also, there are additional discussion, resources, and examples of CORBA.
Resources
Introduction to CORBA ,Java Short Course at Sun Microsystems, December 1999,
http://java.sun.com/developer/onlineTraining/corba/ .
Object Management Group, www.omg.org .
“Overview of CORBA,” Chapter 11 in: Qusay H. Mahmoud, Distributed Programming with
Java , Manning Pub., 2001, http://java.sun.com/developer/Books/
corba/ch11.pdf .
Search WWH ::




Custom Search