TAILIEUCHUNG - Apress bắt đầu ứng dụng với java google - p 11

CHAPTER 4 ■ SERVLET CONTAINER AND FRAMEWORKS application For Flex remoting to work correctly you need to pass some arguments to the compiler, telling it where to find the services file that defines your remoting destination. Your remoting destination points to a class called Gateway that you will create shortly. Rightclick the project name in the left panel and select Properties Flex Compiler. Replace your compiler arguments with the following: -locale en_US -services /war/WEB-INF/flex/ Since you are using GraniteDS, you have to provide the runtime configuration for the. | CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS channels properties scope application scope source source properties destination service services channels channel-definition id my-graniteamf class endpoint uri graniteamf amf class channel-definition channels services-config For Flex remoting to work correctly you need to pass some arguments to the compiler telling it where to find the services file that defines your remoting destination. Your remoting destination points to a class called Gateway that you will create shortly. Rightclick the project name in the left panel and select Properties Flex Compiler. Replace your compiler arguments with the following -locale en_US -services . war WEB-INF flex Since you are using GraniteDS you have to provide the runtime configuration for the container. Create a new folder called granite under WEB-INF and paste the file from graniteds examples graniteds_pojo resources WEB-INF granite into it. In this example you ll be using the Java Persistence API JPA as the persistence protocol. Since App Engine utilizes JDO by default you ll need to create the configuration file for JPA manually. Create the file with the code from Listing 4-17 in the src META-INF directory. Listing 4-17. JPA file xml version encoding UTF-8 persistence xmlns http xml ns persistence xmlns xsi http 2001 XMLSchema-instance xsi schema Location http xml ns persistence 78 CHAPTER 4 SERVLET CONTAINER AND FRAMEWORKS http xml ns persistence version persistence-unit name transactions-optional provider providers properties property name value true property name value true property name .

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.