Next Previous Up Top Contents Index

2 Quick Start Tutorial

2.7 Building and testing the application

In this section we build and test the completed CORBA-based Hello World application.

Once you have replaced the dummy code in my-hello-world-client.dylan with the code in section 2.5.4, and the dummy code in my-hello-world-server.dylan with the code in section 2.6.4, the client and server applications are ready to build again.

1. Choose Project > Build in the My-Hello-World-Client project.
2. Choose Project > Build the My-Hello-World-Server project.

Now, you can run the application to test that it works. You need to run the server first so that it is waiting to receive calls from the client by the time the client makes its call.

3. Choose Project > Start in the My-Hello-World-Server project.
Wait until an MS-DOS console window appears. The server is now running.
4. Choose Project > Start in the My-Hello-World-Client project.

The client pops up another MS-DOS console window, into which it prints Hello World! before the development environment traps its exit and presents a confirmer.

Try quitting the client by clicking OK, and then running it repeatedly. Each time it gets a string from the same server, which keeps running all the while.

An interesting exercise is to set breakpoints in the client and server code to trap the request and open debugger windows as the request passes from client to server.

This concludes the first example.


Developing Component Software with CORBA - 26 May 1999

Next Previous Up Top Contents Index