tailieunhanh - ColdFusion Developer’s Guide phần 7

Để xác định các thông tin trong các điểm đến Flex, bạn chỉnh sửa các tập tin dữ liệu quản trong thư mụccủa máy chủ mà trên đó bạn chạy các ứng dụng Flex. Trong các yếu tố thuộc tính, bao gồm các yếu tố từ xa tên người dùng và mật khẩu từ xa, như sau: | ADOBE COLDFUSION 8 703 ColdFusion Developer s Guide Specifying credentials in the Flex destination Specifying credentials in ActionScript To specify credentials in ActionScript you use the setRemoteCredentials method as the following example shows ds new DataService mydest wilsont password Specifying credentials in the Flex destination To specify credentials in the Flex destination you edit the file that is in the WEB-INF flex folder of the server on which you run the Flex application. In the properties element you include the remote-username and remote-password elements as follows destination id cfcontact adapter ref coldfusion-dao channels channel ref cf-dataservice-rtmp channels properties source source scope application scope remote-username wilsont remote-username remote-password password remote-password . properties destination Enabling SSL You encrypt communication between ColdFusion and Flex by enabling Secure Sockets Layer SSL . Enabling SSL only makes sense if you are running LiveCycle Data Services ES remotely. To use SSL you must create a keystore file. The keystore is a self-signed certificate. You do not require a certificate signed by a Certificate Authority although if you do use one you do not have to configure Flex as indicated in the following steps. The information in the keystore is encrypted and can be accessed only with the password that you specify. To create the keystore you use the Java keytool utility which is included in your Java Runtime Environment JRE . To enable SSL you do the following Create the keystore Configure Flex Enable SSL in the ColdFusion Administrator Create the keystore 1 Generate the SSL server ColdFusion keystore file by using the keytool utility with a command similar to the following keytool -genkey -v -alias FlexAssembler -dname cn FlexAssembler -keystore -keypass mypassword -storepass mypassword The following table .

TỪ KHÓA LIÊN QUAN