Share this Page URL
Help

Chapter 33. Java, COM, & CORBA > Summary - Pg. 227

Java, COM, & CORBA 227 The bad news is that CFX tags are limited--they have access to only a few ColdFusion data types (essentially whatever existed back in ColdFusion 2 days). CFX tags are executables that must be registered in the ColdFusion Administrator so as to bind an alias with the name of the actual executable. Using the CFX interface, it is possible to write exten- sions that cannot be written using other interfaces. For example, the following code snippet uses a C++ CFX named <cfx_zip> to unzip a ZIP file and save the contents into a specified directory: <!--- Unzip C:\FILES\FIGURES.ZIP into C:\SALES ---> <cfx_zip action="UNZIP" destination="C:\SALES" zipfile="C:\FILES\FIGURES.ZIP"> ColdFusion comes with headers and includes files and sample code that should be used when creating CFX tags. Summary ColdFusion has built in support for most day-to-day operations. When needed, ColdFusion exten- sibility options can be used to access the worlds of Java, COM, and CORBA. In addition, extensions can be written in C++ or Java via the CFX interface. Sample Questions 1: What is the preferred extensibility interface for ColdFusion (as of ColdFusion MX)? A. Java B. COM C. CFX D. CORBA 2: What tag would you use to access a JSP Tag Library? <cfobject> A. <cfmodule> B. <cfinvoke> C. <cfimport> D. 3: What CFML language element can be used to invoke a Java object? (select two) A. B. C. D. <cfobject> JavaCast() CreateObject() <cfjava>