Show TOC Start of Content Area

Procedure documentation Running the Application  Locate the document in its SAP Library structure

Use

If you have followed the previous steps consistently, you must have the CallbackApplication deployed and running on an J2EE Engine instance running on a remote host. The client-side application resides on your local machine. When you run it, it connects through IIOP to the remote host and calls the methods of the UtilCallback bean.

Procedure

Running the Java Client

You will run the Java client directly from your Developer Studio. To do that, choose Run Run As Java Application from the main menu of your Developer Studio.

This graphic is explained in the accompanying text

This will run the Client.class. You will see the output printed on the Console pane at the bottom of your Developer Studio screen.

Running the C++ Client

At the end of the development of the CORBA C++ client, you get all files packaged in a single executable (.exe) file, for example, client.exe. You do not run it directly, instead you execute it with some parameters. Proceed as follows:

...

       1.      Open a command prompt and change the directory to the one where your executable file is located.

       2.      Enter the executable file name.

       3.      Provide the –ORBInitRef option on the command line. This option must have value of NameService=corbaloc::127.0.0.1:50007/NameService.

Note

After the corbaloc:: pattern you must provide the IP address (or hostname) and port of the host where the CallbackApplication is running.

With this option you provide the location of the naming service that must be used by the client to obtain an initial object reference. Remember we used in our Client.cpp the following code to get the object reference:

cout << "Getting name service reference....." << endl;  

CORBA::Object_var obj = orb -> resolve_initial_references("NameService"); 

       4.      Press Enter to execute the client.

 

 

End of Content Area