Re: [flexcoders] Compiling and debugging against a remote Coldfusion server

2013-01-28 Thread Nick Collins
Again, to kind of echo what Brendan said, if this guy can't figure out
simple remoting to a Coldfusion server, I would question my choice.
Coldfusion is by far the simplest, most plug and play remoting to Flex
there is, and there is plenty of documentation available showing you
exactly how to do it. The one caveat with working with a remote server is
that you need to make sure you configure your channelset if you are setting
up your remoting in Actionscript as opposed to using the MXML tag.


On Mon, Jan 7, 2013 at 4:58 PM, Brendan Meutzner bmeutz...@gmail.comwrote:

 **


 Do you have a code repository for the ColdFusion content setup? (ie.
 Subversion, CVS, TeamSite, etc...)

 I have never debugged against a remote ColdFusion server, but it looks
 possible:


 http://help.adobe.com/en_US/ColdFusionBuilder/Using/WS0ef8c004658c1089-31c11ef1121cdfd6aa0-7fef.html

 You'll need to have RDS enabled on your remote server... instructions here
 if you already have CF installed... I am not sure if you need to have
 included it during the ColdFusion install, or if you can simply enable
 after the fact.


 http://helpx.adobe.com/coldfusion/kb/disabling-enabling-coldfusion-rds-production.html

 If you have a code repository, then you could check out your central CF
 code to any development or production machine allowing you to keep that
 common set of files you desire.  Then you can have your development
 versions of ColdFusion using this code, and allowing you to setup the debug
 environment locally.  To my knowledge, you're not going to be able to run
 MS Access on the Mac environment, however, that's not a big deal... just
 host the MS Access content on a remote server, and setup your local CF
 development version to have a datasource pointing to the remote database.

 I use Mac for my development environment, and target Windows and Linux
 production servers.  Having the code repository allows me to develop
 locally with my Mac environment, with local CF, database and Flex
 content... when I'm ready, I simply synchronize with repository and then do
 the same on my production versions to get the most up to date code.
  Setting up the local Mac dev environment with CF and Flex is very straight
 forward.  You use the same services-config.xml, remoting-config.mxml files
 as you have on the production server to define end points for RemoteObject
 calls, so everything in seamless when the code hits the server.  In your
 Flex project properties, you target your local version of the
 services-config.xml file (which sits in the
 .../Coldfusion8/wwwroot/WEB-INF/flex-config directory locally) and when the
 application compiles, it uses the defined configuration here.  Once it is
 on the server, you have the same version of the file running on your
 ColdFusion instance and everything is fine.

 In short, take the time and make the effort to get a proper development
 version running, and don't try to develop against remote servers.
  Regardless of Windows or Mac, you want all of your developers to use
 remote development environments.  I've worked on teams with mixed OS
 environments like this, and it's possible to do.

 If you're interested, and have the budget, I can spend a couple hours with
 you to get the right environment setup.  All of the Flex development I've
 done since 2004 is against ColdFusion backends and I'm more than familiar
 with it.  If you think we can solve this with general questions via this
 forum, then I'm happy to help here as well... but there's only so much you
 can solve with generalizations vs. actually seeing your setup and being
 able to help hands on.

 I hope this helps a bit, and feel free to continue to ask questions...


 Brendan


 On Mon, Jan 7, 2013 at 3:49 PM, Mark Fuqua m...@availdata.com wrote:

 be


  



[flexcoders] Compiling and debugging against a remote Coldfusion server

2013-01-07 Thread jmfamp
I have hired someone to work on a Flex application.  It uses remoteObject to 
connect to ColdFusion.  The gentleman I hired does not know how to set up a 
local environment and it seems it ought to be easy to set up the remote server 
to work.

I've tried everything I can think of (granted it is a short list).  Can anyone 
help me figure out what to put in the following fields:

ColdFusion root folder:

Web root:

Root URL:

Some background information on remote server:  It is a vps running ColdFusion 
9.  The server is located in the default location.  When I compile my app 
locally and ftp it to the server, it works without change.  However, when the 
person I hired goes to set up the project, it says the folder does not exist 
(which is doesn't...as Flex is looking locally).

I would like to be able to set it up so he can compile and debug against the 
remote application.  Any help would be greatly appreciated.

Mark



Re: [flexcoders] Compiling and debugging against a remote Coldfusion server

2013-01-07 Thread Brendan Meutzner
- ColdFusion root would be the base installation folder for ColdFusion
(Windows: C:\Coldfusion9 Mac: /Applications/Coldfusion9)

- Web Root will be the wwwroot directory within the Coldfusion folder

- Root URL is http://localhost:8500


I would seriously question the decision of the individual you hired for
Flex if they are unable to get this setup... sorry... i know that sounds
very arrogant but I wouldn't want you throwing money away on this...

The thing to remember with ColdFusion is that when defining channels and
destinations within the various xxx-config.xml files is that they refer to
the ColdFusion installation location for web roots, etc... not the IIS
locations even if you're serving the web content from your inetpub
directory.

To get the CF debugging setup, you need to define a server instance inside
ColdFusion builder and then define your CF project to use that server...
you then Run your CF project in Debug mode to kick off the debugging
breakpoints you put into the CF code will get caught as the CF content is
called and run from your Flex app.


Brendan




On Mon, Jan 7, 2013 at 10:43 AM, jmfamp m...@availdata.com wrote:

 **


 I have hired someone to work on a Flex application. It uses remoteObject
 to connect to ColdFusion. The gentleman I hired does not know how to set up
 a local environment and it seems it ought to be easy to set up the remote
 server to work.

 I've tried everything I can think of (granted it is a short list). Can
 anyone help me figure out what to put in the following fields:

 ColdFusion root folder:

 Web root:

 Root URL:

 Some background information on remote server: It is a vps running
 ColdFusion 9. The server is located in the default location. When I compile
 my app locally and ftp it to the server, it works without change. However,
 when the person I hired goes to set up the project, it says the folder does
 not exist (which is doesn't...as Flex is looking locally).

 I would like to be able to set it up so he can compile and debug against
 the remote application. Any help would be greatly appreciated.

 Mark

  



RE: [flexcoders] Compiling and debugging against a remote Coldfusion server

2013-01-07 Thread Mark Fuqua
Thanks for the reply Brendan.  However, I think I did a bad job communicating 
what I was looking for.  I can set up the environment locally, but the guy I 
hired has never used coldfusion or remote objects.  I hired him to help with an 
existing Flex application I did myself (very green).  It is running locally, on 
my dev machine and remotely on two different websites (slightly different 
code…logos/images/colors etc.). 

 

I wanted some help doing some stuff with filtering and sorting 
listCollectionViews and ArrayCollections…he has never worked with Coldfusion 
before and setting up Coldfusion is pretty easy, but he has a mac, which I know 
nothing about…the database is MS ACCESS (I know…) and  I was just hoping to 
avoid getting him to do that and get all the Coldfusion code over to him and 
get the database working….

 

Is it possible to just set up the compiler/debugger in Flex builder to use the 
remote Coldfusion setup I have already?  It would seem like that would be a 
better alternative, especially with more than one person…always compiling and 
debugging against the same cfc’s and data.

 

I have no real basis for this thought, however, having said that, it would seem 
I should be able to set this all up for my remote server… do the ColdFusion 
root (which is the same as my local set up) and WebRoot (which is the same as 
my local set up) and just somehow change the rootUrl to point to my remote 
server…and maybe also have to put a cross domain file (can’t remember the right 
name) on my remote server. 

 

However, it seems whatever combination I try, fails…

 

This might not be possible…but it seems it should be.

 

Thanks for your time,

 

Mark

 

From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf 
Of Brendan Meutzner
Sent: Monday, January 07, 2013 4:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Compiling and debugging against a remote Coldfusion 
server

 

  

- ColdFusion root would be the base installation folder for ColdFusion 
(Windows: C:\Coldfusion9 Mac: /Applications/Coldfusion9)

 

- Web Root will be the wwwroot directory within the Coldfusion folder

 

- Root URL is http://localhost:8500

 

 

I would seriously question the decision of the individual you hired for Flex if 
they are unable to get this setup... sorry... i know that sounds very arrogant 
but I wouldn't want you throwing money away on this...

 

The thing to remember with ColdFusion is that when defining channels and 
destinations within the various xxx-config.xml files is that they refer to the 
ColdFusion installation location for web roots, etc... not the IIS locations 
even if you're serving the web content from your inetpub directory.

 

To get the CF debugging setup, you need to define a server instance inside 
ColdFusion builder and then define your CF project to use that server... you 
then Run your CF project in Debug mode to kick off the debugging breakpoints 
you put into the CF code will get caught as the CF content is called and run 
from your Flex app.

 

 

Brendan

 

 

 

On Mon, Jan 7, 2013 at 10:43 AM, jmfamp m...@availdata.com wrote:

  

I have hired someone to work on a Flex application. It uses remoteObject to 
connect to ColdFusion. The gentleman I hired does not know how to set up a 
local environment and it seems it ought to be easy to set up the remote server 
to work.

I've tried everything I can think of (granted it is a short list). Can anyone 
help me figure out what to put in the following fields:

ColdFusion root folder:

Web root:

Root URL:

Some background information on remote server: It is a vps running ColdFusion 9. 
The server is located in the default location. When I compile my app locally 
and ftp it to the server, it works without change. However, when the person I 
hired goes to set up the project, it says the folder does not exist (which is 
doesn't...as Flex is looking locally).

I would like to be able to set it up so he can compile and debug against the 
remote application. Any help would be greatly appreciated.

Mark

 





Re: [flexcoders] Compiling and debugging against a remote Coldfusion server

2013-01-07 Thread Brendan Meutzner
Do you have a code repository for the ColdFusion content setup? (ie.
Subversion, CVS, TeamSite, etc...)

I have never debugged against a remote ColdFusion server, but it looks
possible:

http://help.adobe.com/en_US/ColdFusionBuilder/Using/WS0ef8c004658c1089-31c11ef1121cdfd6aa0-7fef.html

You'll need to have RDS enabled on your remote server... instructions here
if you already have CF installed... I am not sure if you need to have
included it during the ColdFusion install, or if you can simply enable
after the fact.

http://helpx.adobe.com/coldfusion/kb/disabling-enabling-coldfusion-rds-production.html

If you have a code repository, then you could check out your central CF
code to any development or production machine allowing you to keep that
common set of files you desire.  Then you can have your development
versions of ColdFusion using this code, and allowing you to setup the debug
environment locally.  To my knowledge, you're not going to be able to run
MS Access on the Mac environment, however, that's not a big deal... just
host the MS Access content on a remote server, and setup your local CF
development version to have a datasource pointing to the remote database.

I use Mac for my development environment, and target Windows and Linux
production servers.  Having the code repository allows me to develop
locally with my Mac environment, with local CF, database and Flex
content... when I'm ready, I simply synchronize with repository and then do
the same on my production versions to get the most up to date code.
 Setting up the local Mac dev environment with CF and Flex is very straight
forward.  You use the same services-config.xml, remoting-config.mxml files
as you have on the production server to define end points for RemoteObject
calls, so everything in seamless when the code hits the server.  In your
Flex project properties, you target your local version of the
services-config.xml file (which sits in the
.../Coldfusion8/wwwroot/WEB-INF/flex-config directory locally) and when the
application compiles, it uses the defined configuration here.  Once it is
on the server, you have the same version of the file running on your
ColdFusion instance and everything is fine.

In short, take the time and make the effort to get a proper development
version running, and don't try to develop against remote servers.
 Regardless of Windows or Mac, you want all of your developers to use
remote development environments.  I've worked on teams with mixed OS
environments like this, and it's possible to do.

If you're interested, and have the budget, I can spend a couple hours with
you to get the right environment setup.  All of the Flex development I've
done since 2004 is against ColdFusion backends and I'm more than familiar
with it.  If you think we can solve this with general questions via this
forum, then I'm happy to help here as well... but there's only so much you
can solve with generalizations vs. actually seeing your setup and being
able to help hands on.

I hope this helps a bit, and feel free to continue to ask questions...


Brendan


On Mon, Jan 7, 2013 at 3:49 PM, Mark Fuqua m...@availdata.com wrote:

 be