Skip to main content
Known Participant
June 26, 2009
Question

Flex Builder 3 try to connect to ColdFusion 8

  • June 26, 2009
  • 1 reply
  • 4260 views

Setup:

ColdFusion 8 Developer - running on a RedHat Linux

Flex Build 3 Trail - running on Window Vista

How do I set up Flex Builder 3 to connect to a ColdFusion's CFC, without installing

everything locally?

I have tried the following:

1) http://www.adobe.com/devnet/flex/articles/coldfusionflex_part3.html

2) http://www.adobe.com/devnet/flex/flex_cf.html

3) ActionScript 3.0 Cookbook

This topic has been closed for replies.

1 reply

Muzak
Inspiring
June 29, 2009

I have a similar setup

Network Sever (windows XP) with JRUN+ColdFusion 8

Flex Builder 3 running on Vista (my PC).

Here's how I setup a new Flex Project to work with ColdFusion (Flex Remoting).

First I have a mapped drive "S:\" that points to a drive (D:\) on the server.

That drive contains the JRUN install, its local path is D:\JRun4\

On the server, the ColdFusion root is at:

D:\JRun4\servers\cfusion\cfusion-ear\cfusion-war

So from my PC to get to the ColdFusion root I use:

S:\JRun4\servers\cfusion\cfusion-ear\cfusion-war

When I create a ColdFusion/Flex application, the only thing different from a "normal" Flex application is that I compile to a directory on the server rather than a local directory.

Here's how:

File -> New -> Flex Project

In the "New Flex Project" wizard, fill in a project name.

At the bottom select "ColdFusion" as Application Server Type from the dropdown list.

Enable "Use remote object access service" and select "ColdFusion Flash Remoting".

On the next page you have to configure ColdFusion.

For server type, I select "Deployed to J2EE server" as I have CF running on top of JRUN.

The Web root is: S:\JRun4\servers\cfusion\cfusion-ear\cfusion-war

If you don't have a mapped drive you can probably use something like \\SERVERNAME\path_to_root\

Root url: http://muzakserver:8300/

Context Root: leave empty

I have Coldfusion WAR is located in web root selected.

At the bottom, select where to compile to, make sure this is a location within your web server (so I can be reached through a browser).

I used S:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\cf_test

Again, this is using the mapped drive (S:\)

Last thing to do is fill in the url to the application directory on the next page.

At the bottom of the "Source Path" tab, fill in the "Output Folder URL" which in my case is: http://muzakserver:8300/cf_test/

When I then click Finish and run or debug the project it opens up in a browser pointing to:

http://muzakserver:8300/cf_test/CF_test.html

Have a look at the attached screenshots.

Known Participant
June 29, 2009

Muzak,

First, I didn't want to setup a Samba share, but you do what works.

Second, I can't find "JRun*" or "cfustion-war" on my server.

So, I am still stuck.

Brian

Muzak
Inspiring
June 30, 2009
First, I didn't want to setup a Samba share, but you do what works.

AFAIK, that's not required.

Second, I can't find "JRun*" or "cfustion-war" on my server.

That's because you have the standalone ColdFusion server installed.

Just adjust the paths I mentioned to whatever your config is.

On the second page in the new project wizard (the server config) select Standalone for the Coldfusion Installation type

Deselect both "Use default location for CF server" and "Use built-in CF server" and fill in (and/or browse to) the proper locations.