<html>
<head>
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CREATEOBJECT: CORBA OBJECT</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="Description">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CREATEOBJECT: CORBA OBJECT</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Description</span>
<p>
The CreateObject function can call a method on a CORBA object. The object must be defined and registered for use. 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Returns</span>
<p>
A handle to a CORBA interface.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Function syntax</span><pre>CreateObject(<i>type, </i><i>context</i>, <i>class</i>, <i>locale</i>)
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">See also</span>
<p>
Chapter&#160;38, "Integrating COM and CORBA Objects in CFML Applications" in ColdFusion MX Developer's Guide
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">History</span>
<p>
See the History section of the main CreateObject function page.
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Parameters</span>
<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Usage</span>
<p>
In the class parameter, if &quot;context=NameService&quot;, use a dot separator for the first part of the string. Use either of the following formats:
</p>
<ul>

<li>&quot;Macromedia/Eng/CF&quot;</li>

<li>&quot;Macromedia.current/Eng.current/CF&quot;</li>
</ul>

<p>
ColdFusion Enterprise supports CORBA through the Dynamic Invocation Interface (DII). To use this function with CORBA objects, you must provide the name of the file that contains a string version of the IOR, or the object's naming context in the naming service. You must provide the object's attributes, method names and method signatures.
</p>

<p>
This function supports user-defined types (structures, arrays, and sequences).
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">Example</span><pre>myobj = CreateObject(&quot;corba&quot;, &quot;d:\temp\tester.ior&quot;, &quot;ior&quot;, 
&quot;visibroker&quot;) //&#160;&#160;&#160;&#160;uses IOR

myobj =    CreateObject(&quot;corba&quot;, &quot;Macromedia/Eng/CF&quot;, 
&quot;nameservice&quot;, &quot;visibroker&quot;)&#160;&#160;&#160;&#160;// uses nameservice

myobj =    CreateObject(&quot;corba&quot;, &quot;d:\temp\tester.ior&quot;, 
&quot;nameservice&quot;) &#160;&#160;&#160;// uses nameservice and default configuration
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="TYPE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TYPE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>Type of object to create.</p><ul>

<li>com</li>

<li>corba</li>

<li>java</li>

<li>component</li>

<li>webservice</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="CONTEXT">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">CONTEXT</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

<ul>

<li>IOR: ColdFusion uses IOR to access CORBA server</li>

<li>NameService: ColdFusion uses naming service to access server. Valid only with the InitialContext of a VisiBroker ORB.</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="CLASS">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">CLASS</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

<ul>

<li>If context = &quot;ior&quot;: absolute path of file that contains string version of the Interoperable Object Reference (IOR). ColdFusion must be able to read file; it should be local to ColdFusion server or accessible on network</li>

<li>If context = &quot;nameservice&quot;: forward slash-delimited naming context for naming service. For example: Allaire//Doc/empobject</li>
</ul>


  </td>
  </tr>
  </table>
</div>
<div id="LOCALE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">LOCALE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>


<p>The name of the Java config that holds the properties file. For more information, see Configuring and Administering ColdFusion&#160;MX.</p>

  </td>
  </tr>
  </table>
</div>

  </body>
</html>
