Below is a simple example of a CORBA program
download the source file
b1. prodUCe a idl file like this/b
hello.idl
module HelloApp {
interface Hello {
string sayHello();
};
};
b2. produce stub and skeleton files through idltoJava.exe/b
idltojava hello.idl
idltojava is now named as idlj.exe and is included in the JDK.
b3. write a server program like this /b
// HelloServer.java
import HelloApp....[ 查看全文 ]