Back to Examples Index Page Back

CORBA Connections Example

Description

This example shows the creation of a private connection to a remote server in the Real-time ORB.

This example uses the following source files: hello.idl, Server.java, Client.java, and GreetingServiceImpl.java

How To Run This Example

  • Start the server. To do this, change directory to <OFJ_DIR>/examples/java/com/prismtech/ofj/examples/corba/connections and type:
    runrt com.prismtech.ofj.examples.corba.connections.Server

    This should output "GreetingServer running in RT .. awaiting calls" upon successful execution.

  • In a new window, change directory to <OFJ_DIR>/examples/java/com/prismtech/ofj/examples/corba/connections and start the client. To do this, type:
    runrt com.prismtech.ofj.examples.corba.connections.Client
  • Expected Results

    The output from the server is:

    GreetingService called by Client Connections Client

    The output from the client is:

    Response from server is Hello Connections Client


    PrismTech TOP
    Top