Skip to main content
Inspiring
August 6, 2009
Answered

Flash Builder + CFB + CF9 + CFC Generator

  • August 6, 2009
  • 1 reply
  • 2746 views

Hi all,

I have set up a remote ColdFusion 9 server and a local one. Finally all of that seems to work; i have configured Flash Builder with Cold Fusion Builder plugin to use both of these servers for accessing data sources and generating cfcs. When I select a table from a data source the try to generate a cfc it asks me for the destination.... at this point i have no idea where to even start. I have tried many different paths, but nothing seems to be generated. I am fully able to do all this in Flex Builder 3 where it can just select the package to generate the CFC into. Any ideas what i could be doing wrong?

Thanks in advance!

This topic has been closed for replies.
Correct answer

The destination is simply going to be where you would like it to place the files it will create for you.

You would want to check "Generate Service" if you would like a service facade created.

The Service name will be the name of your Service but note that you do not want to actually use the word service in the name as it will add it itself.

I would also suggest checking "ColdFusion 8 Compatible" for now.

So for example lets say I have a database table called "person".

And I use the service name of Person and check the option to generate the service.

I would get the following four files created in the folder I specified in destination.

person.cfc

personDAO.cfc

personGateway.cfc

PersonService.cfc

Personally I like the older Flex 3 generator better.  I also think it's generated code is much cleaner and easier to work with as it is passing pure objects around rather then values.  But everyone has their preferences and I suppose the code as it is makes it easier for those not using Flex to work with.

-Joe

1 reply

Correct answer
September 12, 2009

The destination is simply going to be where you would like it to place the files it will create for you.

You would want to check "Generate Service" if you would like a service facade created.

The Service name will be the name of your Service but note that you do not want to actually use the word service in the name as it will add it itself.

I would also suggest checking "ColdFusion 8 Compatible" for now.

So for example lets say I have a database table called "person".

And I use the service name of Person and check the option to generate the service.

I would get the following four files created in the folder I specified in destination.

person.cfc

personDAO.cfc

personGateway.cfc

PersonService.cfc

Personally I like the older Flex 3 generator better.  I also think it's generated code is much cleaner and easier to work with as it is passing pure objects around rather then values.  But everyone has their preferences and I suppose the code as it is makes it easier for those not using Flex to work with.

-Joe

Inspiring
September 21, 2009

Thanks for the reply! It was acctually and issue configuring cold fusion with IIS. I assumed that since it was configured with iis that all of the CFCs would be placed under intepub/wwwroot/ using the '/' default mapping, but as it come out the default location was under coldfusion9/wwwroot.

Gene_Godsey
Inspiring
October 27, 2010

I am having the same issue.

I am using Virtual box as my server development ,location on my laptop and cannot find the server location to install the cfc generator location for my cfc.

What a pain.