Information Technology Reference
In-Depth Information
Consumer
Producer
Consumer
Events
Producer
Event Channel
Events
Consumer
Producer
Consumer
Figure 2.7.
The CORBA event architecture.
module DateApp {
interface Date {
string getDate();
oneway void shutdown();
};
};
Figure 2.8.
The IDL for our simple CORBA implementation
DatePOA.java . An abstract class that provides basic CORBA functionality
for the server. It extends org.omg.PortableServer.Servant , and imple-
ments the InvokeHandler interface and the DateOperations interface. The
server class, DateServant , extends DatePOA .
_DateStub.java . The client stub which is used to provide CORBA function-
ality for the client. It extends org.omg.CORBA.portable.ObjectImpl and
implements the Date interface.
Date.java . This is an interface that contains the Java version of the IDL
interface and extends org.omg.CORBA.Object , providing standard CORBA
object functionality, and the DateOperations interface and
org.omg.CORBA.portable.IDLEntity class.
DateHelper.java . This class provides auxiliary functionality, such as the
narrow() method used to cast CORBA object references to their proper
types.
 
Search WWH ::




Custom Search