User Guide
Connecting to an external JDBC Type 4 data source 65
Enabling web services access for Flash Remoting
By default, Flash Remoting cannot access ColdFusion MX 6.1 through web services.
To enable Flash Remoting to access ColdFusion MX 6.1 through web services:
1 Open the cf_root/wwwroot/WEB-INF/web.xml file in a text editor. In the J2EE configuration,
open cf_root/WEB-INF/web.xml.
2 Locate the servlet definition for FlashGateway and change the DISABLE_CFWS_ADAPTERS
init-param from true to false, as follows:
<servlet>
<servlet-name>FlashGateway</servlet-name>
...
<init-param>
<param-name>DISABLE_CFWS_ADAPTERS</param-name>
<param-value>false</param-value>
<description>When set to true, this setting disables the
ColdFusion WebServices Adapters in the gateway.</description>
</init-param>
</servlet>
3 Save the file.
Connecting to an external JDBC Type 4 data source
ColdFusion MX includes JDBC Type 4 database drivers from DataDirect and MySQL, JDBC
Type 3 database drivers from DataDirect and SQL Link, and a JDBC Type 2 driver from
Jadazoom. (JDBC is an Application Programming Interface (API) for Java programs to access
data.)
To use a JDBC driver that is not included with ColdFusion MX (such as SQLAnywhere or
PostgreSQL) you must configure it and add a data source for it.
To connect to an external JDBC data source:
1 Copy the database driver file to a directory other than the cf_root directory.
2 In the ColdFusion MX Administrator, open the Java and JVM Settings page.
3 In the Class Path text box, enter the directory that contains the driver file and click Submit
Changes.
Note: In the J2EE configuration, update the classpath using your J2EE server-specific method.
4 Restart ColdFusion MX.
For more information, see “Managing ColdFusion MX” on page 51.
Note: In Windows, make sure that you restart all of the ColdFusion MX services; these are listed in
“Overview of services” on page 51.
5 In the ColdFusion MX Administrator, add the other JDBC Type 4 data source, selecting Other
from the Driver drop-down list box.
For more information, see the chapter on data source management in Configuring and
Administering ColdFusion MX.
You can now connect to an external JDBC Type 4 data source.