-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hopefully I can explain in plain English what I am doing so it can 
better help others understand. Both my Home Network and my Work Network 
are exactly the the same with the only exception is the IP Range that is 
used. I have 2 Production Coldfusion 7 Servers with one of them being 
Standalone and one being MultiServer J2EE with JRun4 as I am wanting to 
move from the Standalone to the MultiServer version so each application 
will have its own instance.

My Development Computer is utilizing VMWare 6 and has CentOS 4.6 and 
CFMX7 MultiServer installed. In another VMWare 6 window configured as a 
team is Windows XP that has Flex Builder 3. The Host computer has 
Eclipse 3.3 and CFEclipse with Flex Builder 2 installed. The Host 
computer and the VMWare Team can communicate via Windows Network/Samba 
each shares so I can move files back and forth to test new developments 
and project ideas.

In Flex Builder I just create a new project without Application Server 
and accept all of the defaults. When Flex Builder is done, then I modify 
the mxml file to the mx:RemoteObject stuff. Here is my current lines 
from one application.

<mx:RemoteObject id="FlexNIESCHelpDeskWS" 
source="properties.cfc.NIESCHelpdesk" destination="ColdFusion" 
showBusyCursor="true" endpoint="http://{ServerName}/flex2gateway/"; 
fault="FlexNIESCHelpDeskWS_Fault(event)">
~        <mx:method name="CheckAccount" 
fault="CheckAccount_Fault(event)" result="CheckAccount_Result(event)">
~        </mx:method>
~    </mx:RemoteObject>

The Server name is bindable public var and is set within the private 
function initializeApp():void function and is listed below:

private function initializeApp():void {
~                if 
(URLUtil.getServerName(Application.application.loaderInfo.url).length == 
0) {
~                    ServerName = "helpdesk.niesc.org";
~                } else {
~                    ServerName = 
Application.application.parameters.ServerName;
~                }
~                var popUpWindow:LoginPanel = 
LoginPanel(PopUpManager.createPopUp(this,LoginPanel,true));
~                popUpWindow.ServerName = ServerName;
~                PopUpManager.centerPopUp(popUpWindow);
~            }


This application was also my first Air Application which I just created 
a new Air Project and copied the mxml files from the above project, made 
a code change in the initializeApp() function save it and published the 
application. If this is not supposed to work, then I do not know what to 
say because these are my steps which I can reproduce time and time again 
and even teaching high school students this type of technology.

Hopefully I have explained this however if I have not feel free to call 
me during normal school hours via the contact information at 
www.niesc.k12.in.us



Douglas Knudsen wrote:
| To use RemoteObject you need to compile against a services-config.xml
| file, this is setup for you when creating a application with server
| type coldfusion.  The services-config has settings with placeholders
| for servername, port, etc so can be portable as long as the swf is
| served from the same server as that which the swf tries to communicate
| with.
|
| Curious, how are you using RemoteObject without this?
|
| DK
|
| On Sun, Jul 13, 2008 at 3:55 PM, Graham Pearson 
<[EMAIL PROTECTED]> wrote:
| I am moving some of my Applications over from a Single Server
| Installation of Coldfusion to a MultiServer Installation with JRUN and
| each Website application being their own instance. All of my Flex
| applications are working on the Single Server installation but when they
| are moved over to their own instance on the new server, they are not
| working. In this panel under the Coldfusion Administrator, I have
| changed the Server Identity from default on all instances to the Name of
| the Instance however now the applications do not work.
|
| When I create my projects, I use the Application server type of None
| since my Flex Builder is on a totally separate computer than my
| Development or Production Servers so I have not been able to use the
| Application Server type in my applications even through I use
| RemoteObject to connect to the Backend CFC's.
|
| Does anyone know where I would set the Server Identity within the mxml
| files so the applications will work again.
|
|
|>
|>
|>

| 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:5403
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to