Skip to content

Educational labs to practice working with CORBA principles

Notifications You must be signed in to change notification settings

Cristal32/CORBA_labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Corba Labs

These labs use JDK 1.8 (Java 8), since CORBA classes are no longer available in later versions of Java.

Table of content

How to run the labs on your machine

1. Install JDK 1.8

Check out this website: OpenJDK Downloads
Choose the configurations depending on your own machine's characteristics.

2. Unzip the installed zip file

3. Add the JDK to your project

If you have Eclipse:

3.1. Add the JDK to the installed JREs:
Window > Preferences > Java > Installed JREs > Add > Standard VM > Next > Directory > Find and select your JDK folder > Finish > Check the newly added JDK to make it the default JDK for compilation (temporarily, you can always come back and undo that) > Apply and close.

3.2. Add the JDK to your project's libray:
Left click the project > Build path > Configure build path > Libraries > Add library > JRE System library > Next > Execution environment > JavaSE 1.8 > Finish > Apply and close.

4. Add the JDK to the environment variables

4.1. Go to the location of the JDK folder, enter the bin folder, and copy the path in there.
4.2. Go to the environment variables > Path > Edit > Add > Paste the copied path there > Apply Ok for all tabs.
4.3. To test if it all works fine, go to the command prompt and check the version of idlj:

idlj -version

It should return the version of idlj.

Steps followed in the labs: CORBA lifecycle

1. Define the IDL interface

hello.idl:

interface Hello {
  void sayHello();
}

2. Compile the IDL file

By compiling this file, it gnerates all the necessary classes for the CORBA app:

idlj -fall hello.idl

3. Implement the abstract object

HelloImpl.java:

public class HelloImpl extends HelloPOA {
  void sayHello() {
    // Implementation
  }
}

4. Write and compile the server

5. Write and compile the client

Perspectives

  • Test writing the client in another language (ex. C++) to communicate with the Java-written server.

About

Educational labs to practice working with CORBA principles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages