Chapter 17 Creating CORBA C++ Clients
Jaguar's IIOP implementation allows you to use any CORBA client ORB to invoke Jaguar components. You can also use the Jaguar client ORB to execute components that are hosted by another vendor's server ORB.
In some cases, you may wish to use another vendor's ORB in your client applications. For example, you may have an existing installation of the ORB on client workstations.
Clients that use another ORB can use the same code as the Jaguar ORB, except for the following differences:
CORBA Interface Definition Language (IDL) files are required in order to use another vendor's ORB implementation class. Jaguar Manager generates IDL files for components when you create or import them using Jaguar Manager. Use the IDL-to-C++ compiler that comes with your ORB software to generate compatible stubs.
For information about which component IDL files and Jaguar IDL files you need to use to generate stubs for other ORBs, see "Generating compatible stubs" (although this section refers to Java clients, it also applies to C++ clients).
Use the ORB vendor's IDL-to-C++ compiler to generate stubs for the files in the table, "Jaguar IDL files". All IDL files are installed in the Jaguar include subdirectory. "Writing CORBA C++ clients" describes how these interfaces are used to instantiate Jaguar components and call component methods. For additional information, see the comments in each IDL file.
Jaguar provides C++ header files to convert from the Jaguar CORBA datatypes to those commonly used in C++. "Supported datatypes" lists the datatypes displayed in Jaguar Manager, the equivalent CORBA IDL types, and the C++ datatypes used in stub methods. If you are using another vendor's ORB, use the Jaguar header files in your application. For languages other than C++, see the comments in the IDL files for details on how the data is interpreted.
Jaguar's naming service cannot be used with other client ORBs, so you must use the Jaguar SessionManager::Manager interface to instantiate components from another ORB, as described in "Instantiating stub instances".
Also, you must use standard format IORs, not the URL format, as described in "Creating a Manager instance".
You can use the Jaguar client-side ORB to execute components hosted by another vendor's server-side ORB, as long as the server-side ORB accepts IIOP connections and the required interfaces are defined in standard CORBA IDL. Implement your client as follows:
Copyright © 2000 Sybase, Inc. All rights reserved. |