![]() ![]() ![]() |
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Unlike a client/server system, the objects in CORBA application are peers: none is intrinsically more important than any other. You may decide to design your program using various kinds of Client/Server metaphors, but that decision is yours to make. The ORB just sees objects communicating with each other over a network.
In this Magercise there is a pair of peer objects,
Your task is to create two Java classes, PrerequisitesSkeleton Code
Tasks
First take a look at the IDL file,
Examine the two implementation classes,
Using the skeleton code file as a starting point, modify the class
Now fill out the
Compile your program and run it to see what happens. Where help exists, the task numbers above are linked to the step-by-step help page. The timing information printed out when the solution is run gives you some idea of the latency involved when calling methods on a distributed object. For extra credit, you can modify the implementation classes to print out the time difference between pings and pongs. Solution Source
Demonstration
The PongObjectImpl[Server,oid=TransientId[repId=IDL: PPModule/PongObject:1.0,serverId=1,creationTime= -1557647756]] is ready. pong:917565354109 pong:917565354219 pong:917565354429 pong:917565354619 pong:917565354820
The MagercisesShort CourseCopyright © 1998-1999 MageLang Institute. All Rights Reserved. |