rss
twitter
    Twitter feed not available

Flex Builder 2 and Mystic on differnet machines

It took me a while to get Flex Builder 2 and Mystic to play nice together using the 'Multiserver' install of CF.  The biggest issue is dicussed here.  But the default set-up assumes you are using Flex Builder on the same machine that is running ColdFusion. 

This is good for work, where all development is done on a laptop that has CF Running, but at home I needed more.  I needed to connect to CF running on a different machine.  The solution was actually pretty easy. (I think this is for 'Server' installs of CF, as well as 'Multiserver')



WARNING: This is what I did to get Felx Builder 2 to 'talk' with CF on a different machine.  Follow these instructions at your own risk.  I am not, nor do I claim to be, a Flex expert, I do not, nor have I ever, played one on TV, and I did NOT stay at a Holiday Inn Express last night.  That being said, have at it.

  1. Stop the instance of ColdFusion you want to configure.
  2. Open the {CF Root}\WEB-INF\flex\flex-enterprise-services.xml file.
  3. Look for a line that reads: 
    <endpoint uri="http://localhost:8500{context.root}/flex2gateway/" class="flex.messaging.endpoints.AMFEndpoint"/>
    (If you have already modified this file, the port number may be different.)
  4. Change 'localhost' to a URL on the remote server, for example, dev.boyzoid.local.
  5. Save the file.
  6. Restart ColdFusion
Now in Flex Builder 2, you need to tell you project which flex-enterprise-services.xml file to use.
  1. Right-clik the Flex Project name.
  2. Select 'Properties'
  3. In the left pane of the window that opens up, click 'Flex Compiler'
  4. In teh box labeled 'Additional Compiler Arguments' enter --services=path to flex-enterprise-services.xml. (I have read that UNC pathing doesn't work here, but no big deal, I have a drive mapped anyway)
  5. Re-compile your Flex application(s)
As I play around with other settings and such, I will post about them here.

0 comments

(Comment Moderation is enabled. Your comment will not appear until approved.)