How to define server types

Server types

Flex Builder / Eclipse IDE needs to know the configuration used to connect to your local development server. Several configurations are applicable, depending on your particular needs.

  1. J2EE-REMOTING : J2EE server that uses remote object access service.
  2. CODLFUSION-REMOTING : ColdFusion server that uses remote object access service.
  3. PHP : simple PHP server.
  4. ASP-IIS : simple ASP-IIS server.
  5. J2EE : simple J2EE server.
  6. CODLFUSION : simple ColdFusion server.

Server configuration

After creating your pom file, you should add the following parameters to the configuration section of the plugin. Each of this parameters corresponds to Flex Builder / Eclipse IDE settings.

  ...
        <configuration>
        ...
                <flexServerType>j2ee</flexServerType>
                <serverRoot>C:/apache-tomcat/webapps</serverRoot>
                <serverRootUrl>http://localhost:8700</serverRootUrl>
                <serverContextRoot>/myApplication</serverContextRoot>
        ...
        </configuration>
  ...

Parameters flexServerType , serverRoot and serverRootUrl are mandatory, serverContextRoot is optional.

For project that uses "remoting" features, the servicesConfiguration configuration parameter should be set.

  ...
        <configuration>
        ...
                <servicesConfiguration>/usr/local/apache-tomcat/webapps/myApp/WEB-INF/services-config.xml</servicesConfiguration>
        ...
        </configuration>
  ...