2 Replies Latest reply on Jul 5, 2006 1:21 PM by mpeterson

    Where is the  "contact" folder?

    pcmola2
      I found some problems while studying the turorial :
      "Getting Started with Flex 2 > Lessons > Use the Data Management Service
      > Build a distributed application with the Java adapter."

      It says as follows :

      View the samples.contact.Contact class
      Copy the dataservice/contact/samples directory and its contents from the samples directory of the samples web application into the DSLessons directory that you created for this tutorial.




      This sample "contact" folder is needed to complete the example.

      If I've installed the flex data services correctly, there should be the "contact" folder under the "$fds2\jrun4\servers\default\samples\dataservice" folder, which wasn't.

      Even though re-installing the flex data service, I couldn't find the "contact" folder. I only have found the folders such as "crm", "flexcab", "notes." .

      I may have done it by mistake in installing or setting the environment.
      But others have also said the same problems(some found problems when using beta version) in this porum.
        • 1. Re: Where is the  "contact" folder?
          wood1
          You are right, Adobe missed the important sample for showing how can FDS work with java-adapter.


          Wood
          • 2. Re: Where is the  "contact" folder?
            mpeterson Level 1
            The "contact" sample application used in this tutorial IS NOT included in the Flex Data Services samples web application. The documentation text is incorrect. However, the required files are available in the following zip file, which you can unzip into the samples (root directory) of the samples web application:
            http://www.adobe.com/go/flex2_contact_app_zip

            After unzipping the file, copy the following destination definition after the last destination in the samples/WEB-INF/flex/data-management-config.xml file:
            <destination id="contact">

            <adapter ref="java-dao" />

            <properties>
            <source>samples.contact.ContactAssembler</source>
            <scope>application</scope>

            <metadata>
            <identity property="contactId"/>
            </metadata>

            <network>
            <session-timeout>20</session-timeout>
            <paging enabled="false" pageSize="10" />
            <throttle-inbound policy="ERROR" max-frequency="500"/>
            <throttle-outbound policy="REPLACE" max-frequency="500"/>
            </network>

            <server>
            <fill-method>
            <name>loadContacts</name>
            </fill-method>

            <fill-method>
            <name>loadContacts</name>
            <params>java.lang.String</params>
            </fill-method>

            <sync-method>
            <name>syncContacts</name>
            </sync-method>
            </server>
            </properties>
            </destination>

            - Mike Peterson
            Adobe Flex documentation team