Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Applications Needed: Java JDK software and IDLTOJAVA compiler. The JDK has a built in
ORB and API which enables CORBA distributed object interaction. The IDLTOJAVA compiler
converts IDL-to-Java mapping in order to convert IDL interface definitions to Java methods,
classes, and interfaces that can be used to implement the server and client code.
To get the latest version of the IDL-to-Java compiler, download the latest version of
the Java™ Platform, Standard Edition (Java SE). When Java SE is installed, idlj will be
located in the bin directory.
Page 1 of 4
{
public static void main(String args[])
{
try{
} catch(Exception e) {
System.out.println("ERROR : " + e);
e.printStackTrace(System.out);
}
}
}
Page 2 of 4
// create the servant and register it with the ORB
LibertyServant libertyRef = new LibertyServant();
orb.connect(libertyRef);
Page 3 of 4
java LibertyClient –ORBInitialHost nameserverhost
-ORBInitialPort nameserverport
The client will return the string from the server to the command line: Liberty U!!
Turn off tnameserv and LibertyServer processes after the client application returns successfully.
Deliverables: Take a screen shot of the “Liberty U!!” command prompt output and save it to the
java project folder. Compress all of the files within your java project and upload it to the final
project assignment link.
Page 4 of 4