Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

CORBA Clients

Writing a CORBA client is pretty simple, if you can grasp the nuances of the language mapping. After you obtain the interface (usually by looking at the IDL) for the server you wish to contact, you have to generate Java stubs. Java stubs contain all the underlying functionality needed to make a call across a network to a server in an unknown location. Remember that your server will not be in any definite location; in fact, the beauty of the Naming Service is that the corresponding string name can point you to any object at any time.

With that in mind, the last thing you want to concern yourself with is network code. Let the ORB deal with all of that, and you can concentrate on creating a client that works for you. Your client will be mostly a User Interface. The few instances in which it needs to make a network call are usually to relay information from the UI back to the server, and to refresh information on the UI with data stored on the server. In client/server parlance, this is called a "thin client," meaning that the functionality of the client related to the server is minimal.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint