Igor
 
Not sure what other details you need, I thought I covered pretty much 
everything.  Anything else that's missing is basically the information I'm 
looking for :-)
 
My Flex client is served up from SRV1 (the FDS server).  It contains the 
following...
 
-------
<mx:DataService id="TransferCenterDS" destination="cftransfer" />
-------
 
That destination is defined in the FDS services-config.xml...
 
-------
<services>  <service id="data-service" class="flex.data.DataService" 
messageTypes="flex.data.messages.DataMessage">   <adapters>    
<adapter-definition id="coldfusion-dao" 
class="coldfusion.flex.CFDataServicesAdapter"/>   </adapters>   <destination 
id="cftransfer">      <adapter ref="coldfusion-dao"/>      <channels>       
<channel ref="cf-dataservice-rtmp"/>       <channel ref="cf-polling-amf"/>      
</channels>      <properties>       
<component>applications.flex.transfer-center.cf.TransferAssembler</component>   
    <scope>request</scope>       <metadata>        <identity 
property="TransferId"/>       </metadata>      </properties>   </destination>  
</service></services>
-------
 
These two CF specific channels are also defined in the FDS services-config.xml 
like this (but here's where I'm having endpoint woes)...
 
-------
  <channel-definition id="cf-dataservice-rtmp" 
class="mx.messaging.channels.RTMPChannel">    <endpoint 
uri="rtmp://srv2.mydomain.com:2048" 
class="flex.messaging.endpoints.RTMPEndpoint"/>    <properties>     
<idle-timeout-minutes>20</idle-timeout-minutes>     <serialization>    
<instantiate-types>false</instantiate-types>     </serialization>    
</properties>  </channel-definition>  <channel-definition id="cf-polling-amf" 
class="mx.messaging.channels.AMFChannel">    <endpoint 
uri="http://srv2.mydomain.com:{server.port}/messagebroker/cfamfpolling"; 
class="flex.messaging.endpoints.AMFEndpoint"/>    <properties>   
<serialization>     <instantiate-types>false</instantiate-types>   
</serialization>   <polling-enabled>true</polling-enabled>   
<polling-interval-seconds>8</polling-interval-seconds>    </properties>  
</channel-definition>-------
 
My Flex client also contains an ArrayCollection...
-------
<mx:ArrayCollection id="TransferCenterAC" />
-------
 
There is also a datagrid that has a dataprovider bound to this ArrayCollection.
 
-------
<mx:DataGrid id="junkDG" width="98%" height="50%" 
dataProvider="{TransferCenterAC}">         <mx:columns>          
<mx:DataGridColumn headerText="ID" dataField="TransferId"/>          
<mx:DataGridColumn headerText="Transfer Agency" 
dataField="TransferInfo_AgencyCB"/>
          .....         </mx:columns></mx:DataGrid>-------
I also have a test button...
 
-------
<mx:Button label="Fill" 
click="TransferCenterDS.fill(TransferCenterAC);"/>-------
 
I don't know what other information I could give you.  There's not much to it.  
Problem is that no matter what I use for endpoints I always seem to get one 
type of communication error message or another.  There's too many combinations 
of endpoints and errors to list here.  All I'm really looking for is an article 
or blog that talks about endpoints and channels and possibly describes how they 
can be configured in a distributed architecture such as mine.  It's surprising 
it's not already out there as Flex, FDS, and CF are all supposed to work 
together so nicely.  You'd think there'd be more information on how to set the 
three up in a distributed way.  You can find tons of tutorials on FDS using 
java assembler, dao, and object classes, but almost nothing on using CFCs on a 
CF server running on a separate physical server.
 
Thanks
Darren


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 19 Apr 2007 12:10:59 
-0300Subject: Re: [flexcoders] FDS / CF EndpointsGive more detailswith the 
information you sent me it's very limitated to understand what you're looking 
for.Regards.
On 4/19/07, Darren Houle <[EMAIL PROTECTED]> wrote: 





Yes, I have a "*" crossdomain policy in place (on both servers, just in case.) 
Darren  


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Wed, 18 Apr 2007 17:59:54 -0300 
Subject: Re: [flexcoders] FDS / CF EndpointsDarrenDid you configuration of your 
app crossdomain.xml to allow this thing?Regards.
On 4/18/07, Darren Houle < [EMAIL PROTECTED]> wrote: 




I'm building an FDS app but instead of defining an assembler.class, dao.class, 
and customobject.class on the FDS server in Java I'm defining them on a 
ColdFusion server using CFCs.  I'm following Tom Jordahl's article located 
here:  http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1_02.html  
But, while Tom is running both FDS and CF on a single physical server, I have 
two separate physical servers... http://srv1.mydomain.com (FDS with integrated 
JRun)http://srv2.mydomain.com (ColdFusion Ent 7.0.2) My Flex client is being 
served out to the browser from SRV1 (the FDS server) and I have 
ObjAssembler.cfc, ObjDAO.cfc, and Obj.cfc on SRV2 (the ColdFusion server) In my 
Flex client I define a DataService to manage my Obj's in a simple grid just to 
test that it's all wired correctly, but it's not working. I believe my problem 
is that I have my endpoints defined incorrectly in the services-config.xml that 
resides on SRV1 (the FDS server) In Tom's article he says to just use... 
<endpoint uri="rtmp://{ server.name}:2048" 
class="flex.messaging.endpoints.RTMPEndpoint"/><endpoint 
uri="http://{server.name}:{server.port}/{context.root}/messagebroker/cfamfpolling";
 class="flex.messaging.endpoints.AMFEndpoint "/> But since my CF server is 
physically separate I changed these endpoints to<endpoint 
uri="rtmp://srv2.mydomain.com:2048" 
class="flex.messaging.endpoints.RTMPEndpoint"/> <endpoint 
uri="http://srv2.mydomain.com:{server.port}/messagebroker/cfamfpolling"; class=" 
flex.messaging.endpoints.AMFEndpoint"/> But it does not work.  No errors, it 
just doesn't ds.fill() or anything. Are these endpoints supposed to point to 
the CF server (SRV2)... or one to the CF server and one to the FDS server... or 
to the FDS server (SRV1)?  How do I know what port to specify for the 
AMFEndpoint?  How does the whole "messagebroker/cfamfpolling" path work when 
there's nothing under there?  I'm pretty lost when it comes to configuring 
endpoints in general.  Thanks!Darren-- ----------------------------Igor 
Costawww.igorcosta.orgwww.igorcosta.comskype: igorpcosta 

Reply via email to