Running webapp client flex client in IntelliJ

Can I start the Flex client inside IntelliJ inside and talk to the instance of a separately deployed server? Java webapp server. This will greatly facilitate development, especially debugging. What I'm trying to avoid is rebuilding and redeploying the webapp to get the updated Flex code in it. I want to just create flex and run it on the server.

The flex client is embedded in the HTML page on the server, so during the production process, users access the client by going to the web page. We use GraniteDS if this is important.

Update

I managed to collect something, but it's ugly.

  • I made a copy of our HTML cover page and fixed the links to link to the SWF in the target
  • I am configuring the IntelliJ startup configuration to point to this HTML page
    • I set the "SWF place file to a local trusted sandbox" to true
  • The values {server.name} , {server.port} and {context.root} in the configuration file service-config.xml GraniteDS on localhost, etc. are hardcoded.

I can mavenize # 1, but # 3 is not really a permanent solution. This part is still a problem because I cannot verify this. Any improvements or alternative solutions?

+4
source share
1 answer

Most Flex applications do not really use the services-config.xml configuration to configure the client channel, as this hardcodes URLs in SWF. The best solution is to externalize the configuration. Most Flex frameworks (Swiz, Robotlegs, etc.) provide an excellent way to urgently customize the channel configuration to an XML file. However, you can also copy your own configuration of XML-based client channels .

+1
source

All Articles