So, I’ve done what you suggested and
I’m able to create a project using Remoting. However, I’m still a
bit confused…. I know I can edit the flex-enterprise-services.xml to
change the endpoint for Remoting calls. The issue is that it’s configured
for http://localhost:8300/flex2gateway/
while my sites (I’ve got more than one site on this server) are on two
different domains. Let’s say my domains are http://www.foo.com and http://www.bar.com... Both sites have been set up so I can go to
http://www.foo.com/flex2gateway/
or http://www.bar.com/flex2gateway/
and they both return a blank page. How can I allow flex apps that rely on Remoting
to work for both sites? I can’t simply set the end point to one or the
other, because one app breaks or the other app breaks. Is there a way to
define more than one endpoint? To Adobe: Why isn’t this configured
on a per-application basis? I’d love to have one XML file in my
application which I define that application’s settings in. It’s my
humble opinion that configuration data is part of an application, not the
server it’s running on. (I have this same beef with CF. Why do I define
datasources, custom tag paths, mappings, gateways, etc, on the server and not
in a configuration file that can be distributed with my app?) Thanks, Doug From: What do you give as the root folder and
the root url? It should be the root of your coldfusion
instance. Ex. : C:\CFusionMX7\wwwroot and http://localhost:8500 (if you're using the
integrated http server) FB2 will then create a folder
"flex" in WEB-INF and create the appropriate
flex-enteprise-services.xml. Are you using the integrated jrun http
server? I found that when using Apache as the http
server instead of the integrated jrun http server, there is issue
(compiled files are not created under the Apache wwwroot but the JRun root
folder...). So you have to create a Flex project
without Flex server technology and configure the CF Adapter manually : - by creating and configuring the
flex-enterprise-services.xml, - by adding the compiler arg
"--services=D:\CFusionMX7\wwwroot\WEB-INF\flex\flex-enterprise-services.xml"
(put the correct path to flex-enterprise-services.xml). Benoit Hediard De : Hello, I’m just getting started with flex 2 and I’ve
run into a problem I can’t get past. I’m trying to create a
project that will let me use AMF3. I don’t want to use web services
and I’m not doing anything related to the enterprise services. I’ve installed the “mystic” update over CF
7.0.1 running under JRun. There’s another instance of CF under JRun
but it’s not running. I’m trying to create project using FlexBuilder 2.
(I have the standalone version of beta 2 installed.) To
create the project I click File > New > Flex Project. It then asks
me what Flex server technology the project will use. I select ColdFusion
Flash Remoting Service (this means AMF3, right?) and click next. The next page asks me for two things: Root folder and
Root URL. I’ve provided the path to the flex folder under the
ColdFusion instance in JRun and the path to the flex folder via the URL.
(The JRun http server port is 8300.) No matter what I provide the finish button is always grayed
out. I suspect that if I click Validate Location that it should validate
this information and allow me to finish but every time I click that I get this
error: Server root is invalid. Could not locate flex-config.xml or
flex-enterprise-services.xml. For the life of me I’ve got no freakin’ clue how
to get past this. Can anyone help me figure out how to get past
this? Do I need to? Can I create a standard flex project and still
use AMF3? Can I use this AMF stuff outside of the JRun urls? IE
via http://www.mysite.com/ instead of http://localhost:8700/flex/? Thanks for your help! Doug Hughes
|
- RE: [flexcoders] Beta 2 CF connectivity problems Doug Hughes