Follow the algorithm presented in the chapter to compile and run the Hello example on one machine. Write a report to describe your experience, including any difficulty you encountered and how you resolved it.

What will be an ideal response?

To start out with, these are the files in the Hello folder:
Directory of C:\mliu\tmp\hello1.4
09/09/01 02:33p 107 Hello.idl
07/31/02 09:12p 1,222 HelloClient.java
09/09/01 05:23p 774 HelloImpl.java
12/29/02 04:03p 1,891 HelloServer.java
07/31/02 09:19p 683 README
11/03/02 09:51p 63 runClient.bat
11/03/02 09:44p 38 runOrbd.bat
11/03/02 09:49p 65 runServer.bat

When the interface file is compiled as follows:
idlj -fall Hello.idl
The resulting directory is as follows:
09/09/01 02:33p 107 Hello.idl
02/26/03 09:48p

HelloApp
07/31/02 09:12p 1,222 HelloClient.java
09/09/01 05:23p 774 HelloImpl.java
12/29/02 04:03p 1,891 HelloServer.java
07/31/02 09:19p 683 README
11/03/02 09:51p 63 runClient.bat
11/03/02 09:44p 38 runOrbd.bat
11/03/02 09:49p 65 runServer.bat

The contents of the HelloApp directory is as follows:
02/26/03 09:48p 319 Hello.java
02/26/03 09:48p 1,893 HelloHelper.java
02/26/03 09:48p 775 HelloHolder.java
02/26/03 09:48p 313 HelloOperations.java
02/26/03 09:48p 2,133 HelloPOA.java
02/26/03 09:48p 2,382 _HelloStub.java

All the .java files are then compiledas follows:
javac *.java

when the runOrbd batch file is run, a console screen is opened and the following commands are shown:
start orbd -ORBInitialPort 1234
which in turn starts another console screen for the running of the orbd at port 1234.

The server is then started using the runServer batch file:
C:\mliu\tmp\hello1.4>runServer

C:\mliu\tmp\hello1.4>java HelloServer -ORBInitialHost localhost -ORBInitialPort
1234
HelloServer ready and waiting ...

A client can then be started using the runClient batch file, resulting in the following display:
C:\mliu\tmp\hello1.4>runClient
C:\mliu\tmp\hello1.4>java HelloClient -ORBInitialHost localhost -ORBInitialPort
1234
Obtained a handle on server object: HelloApp._HelloStub:IOR:00000000000000174944
4c3a48656c6c6f4170702f48656c6c6f3a312e300000000000010000000000000070000102000000
000f3132332e3132332e3132332e31310000042a000000000021afabcb00000000209dd829000000
0001000000000000000000000004000000000a000000000000010000000100000020000000000001
0001000000020501000100010020000101090000000100010100

Hello world !!

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a question that you would ask a database to search for information

A) query B) inquiry C) QWERTY D) data question

Computer Science & Information Technology

What can be done to defeat a DDoS Attack?

What will be an ideal response?

Computer Science & Information Technology