Developing the IIOP client program

Note: This section assumes that you're using the CORBA development style to create a stateless CORBA object application (approach 1 in Developing stateless CORBA objects, rather than the RMI-IIOP approach). The RMI-IIOP approach is described in Developing an RMI-IIOP stateless CORBA application.
  1. Process the IDL file with an IDL- to-Java™ compiler suitable for your client system (using the same IDL file that you used to build the server application).
  2. Obtain a stringified object reference to the GenericFactory by downloading genfac.ior (in ASCII mode) from the CorbaServer's shelf directory, where it was created when the CORBASERVER resource was published. Alternatively, you can use JNDI, as a Generic Factory IOR for the CorbaServer is published to the namespace if you issue an EXEC CICS PERFORM CORBASERVER PUBLISH, or a CEMT PERFORM CORBASERVER PUBLISH command. If you plan to use JNDI, then you must define a nameserver, see Defining name servers. The IOR is bound into the context identified by the JNDI prefix in the CORBASERVER resource definition, with the name GenericFactory. For example, the pathname would be:
    /jndiprefix/GenericFactory

    See the CICS® Resource Definition Guide and the CICS Supplied Transactions manual .

  3. Write your client program, containing calls to the server. To obtain an initial object reference, use the GenericFactory as shown in Client example.
  4. Compile the client program, and the output from step1, with javac or an equivalent compiler.