ORB::create_environment

Overview Creates an Environment object.
Original class CORBA::ORB
Exceptions CORBA::SystemException


Intended Usage

This method is intended to be used to create an Environment object.

Syntax

  CORBA::Status create_environment (CORBA::Environment_ptr& envptr);

Input parameters

envptr
A pointer for a CORBA::Environment object, passed by reference, to be initialized by the CORBA::ORB::create_environment method. The caller assumes ownership of the new Environment object.

Return values

CORBA::Status
A zero return value indicates success.

Example

  #include "corba.h"
  int main(int argc, char* argv[])
  {
    /* assume cop initialized */
    extern CORBA::ORB_ptr cop;
    CORBA::Environment_ptr envptr = CORBA::Environment::_nil();
    CORBA::Status status = cop->create_environment(envptr);
    return status;
  }

Related reference
CORBA module



Searchable topic ID:   rcor_modor8
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/corba/ref/rcor_modor8.html

Library | Support | Terms of Use | Feedback