ColdFusion 9.0 Resources |
Creating CORBA objectsContents [Hide]In ColdFusion, the cfobject tag and CreateObject function create a stub, or proxy object, for the CORBA object on the remote server. You use this stub object to invoke the remote object. The following table describes the attributes you use in the cfobject tag to create a CORBA object:
For example, use the following CFML to invoke a CORBA object specified by the tester.ior file if you configured your ORB name as Visibroker: <cfobject action = "create" type = "CORBA" context = "IOR" class = "d:\temp\tester.ior" name = "handle" locale = "Visibroker"> When you use the CreateObject function to invoke this CORBA object, specify the name as the function return variable, and specify the type, class, context, and locale as arguments. For example, the following line creates the same object as the preceding cfobject tag: handle = CreateObject("CORBA", "d:\temp\tester.ior", "IOR", "Visibroker") Using a naming serviceCurrently, ColdFusion can only resolve objects registered in a CORBA 2.3-compliant naming service. If you use a naming service, make sure that its naming context is identical to the naming context specified in the property file of the Connector configuration in use, as specified in the ColdFusion Administrator CORBA Connectors page. The property file must contain the line "SVCnameroot=name" where name is the naming context being used. The server implementing the object must bind to this context, and register the appropriate name. |