1 / 4

HelloWorld Revisit

HelloWorld Revisit. Review HelloWorld Example Idl Generated files Why separate GoodDay and GoodDayOperations Operations may not want to extend from org.omg.CORBA.Object Relationship among generated classes. InterfaceNameOperations. org.omg.CORBA.Object. Org.omg.CORBA.portable.ObjectImpl.

naomi
Download Presentation

HelloWorld Revisit

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. HelloWorld Revisit • Review HelloWorld Example • Idl • Generated files • Why separate GoodDay and GoodDayOperations • Operations may not want to extend from org.omg.CORBA.Object • Relationship among generated classes InterfaceNameOperations org.omg.CORBA.Object Org.omg.CORBA.portable.ObjectImpl InterfaceName _InterfaceNameStub ORB Runtime

  2. HelloWorld Revisit • Initializing the ORB • ORB as pseudo-object • Methods provided by a library in communication with the run-time system • Its reference cannot be passed as a parameter to CORBA interface operations. • Reference to an ORB looks like other object reference • ORB orb = ORB.init(args, null) returns an instance of an ORB • Client implementation • Initialize ORB • Get obj reference • Make call on the object (like a local call) • Compile • Execute: programName, parameter (the object reference) ORB Runtime

  3. HelloWorld Revisit • Initializing the ORB • ORB as pseudo-object • Methods provided by a library in communication with the run-time system • Its reference cannot be passed as a parameter to CORBA interface operations. • Reference to an ORB looks like other object reference • ORB orb = ORB.init(args, null) returns an instance of an ORB • Server implementation • Servant • Example GoodDayImp • Server implementation • Initialize orb • get POA • Activate POA • Get a servant • Covert a servant to a CORBA object reference ORB Runtime

  4. HelloWorld Revisit • Initializing the ORB • ORB as pseudo-object • Methods provided by a library in communication with the run-time system • Its reference cannot be passed as a parameter to CORBA interface operations. • Reference to an ORB looks like other object reference • ORB orb = ORB.init(args, null) returns an instance of an ORB • Server implementation • Servant • Example GoodDayImp • Server implementation • Initialize orb • get POA • Activate POA • Get a servant • Covert a servant to a CORBA object reference ORB Runtime

More Related