edit Information regarding BlazeDS

Opening the Samples Source Code in FlexBuilder 3

  1. Unzip flex-src.zip located in WEB-INF\flex-src to the root folder of your FlexBuilder workspace.
  2. Create a FlexBuilder project for each sample application you are interested in. There are several approaches to create a FlexBuilder project for a Flex application that works with BlazeDS. We describe a simple approach here.
  3. Select File>New>Project… in the FlexBuilder menu.
  4. Expand FlexBuilder, select Flex Project and click Next.
  5. Provide a project name. Use the exact name of the sample folder. For example testdrive-httpservice.
  6. If you unzipped flex-src.zip in the root folder of your FlexBuilder workspace, keep the use default location checkbox checked.
  7. Select Web Application as the application type.
  8. Select J2EE as the application server type.
  9. Check use remote object access service.
  10. Uncheck Create combined Java/Flex project using WTP.
  11. Click Next.
  12. Make sure the root folder for LiveCycle Data Services matches the root folder of your BlazeDS web application. If you are using the Tomcat integrated server on Windows, the settings should look similar to this (you may need to adjust the exact folder based on your own settings):
          Root Folder: C:\blazeds-beta1\tomcat\webapps\blazeds-samples
          Root URL: http://localhost:8400/blazeds-samples/
          Context Root: /blazeds-samples

13. Click Validate Configuration, then Finish.


Basic Services-Config.xml

<?xml version="1.0" encoding="UTF-8"?>
<services-config>

    <services>
        <service id="remoting-service"
            class="flex.messaging.services.RemotingService">
        
            <adapters>
                <adapter-definition id="java-object"
                    class="flex.messaging.services.remoting.adapters.JavaAdapter"
                    default="true"/>
            </adapters>
        
            <default-channels>
                <channel ref="my-amf"/>
            </default-channels>
        
              <destination id="bob">
                <properties>
                    <source>test.Tester</source>
                </properties>
            </destination>
        </service>
        
        <service-include file-path="proxy-config.xml" />
        <service-include file-path="messaging-config.xml" />        
    </services>

    <security>
        <login-command class="flex.messaging.security.TomcatLoginCommand" server="Tomcat"/>
    </security>

    <channels>

        <channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/>
        </channel-definition>

        <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
            <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint"/>
            <properties>
                <add-no-cache-headers>false</add-no-cache-headers>
            </properties>
        </channel-definition>

        <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
            </properties>
        </channel-definition>
    </channels>

    <logging>
        <target class="flex.messaging.log.ConsoleTarget" level="Error">
            <properties>
                <prefix>[BlazeDS] </prefix>
                <includeDate>false</includeDate>
                <includeTime>false</includeTime>
                <includeLevel>false</includeLevel>
                <includeCategory>false</includeCategory>
            </properties>
            <filters>
                <pattern>Endpoint.*</pattern>
                <pattern>Service.*</pattern>
                <pattern>Configuration</pattern>
            </filters>
        </target>
    </logging>

    <system>
        <redeploy>
            <enabled>false</enabled>
            <!-- 
            <watch-interval>20</watch-interval>
            <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/proxy-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/remoting-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/messaging-config.xml</watch-file>
            <watch-file>{context.root}/WEB-INF/flex/data-management-config.xml</watch-file>
            <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
             -->
        </redeploy>
    </system>

</services-config>

Last modified December 19, 2007 7:07 pm / Skin by Kevin Hughes
Powered by MediaWiki