I am compiling in the webtier.  The samples app that comes with flex uses the 
tokens and 
works fine.  It does not seem to have a crossdomain file, but i will try these 
and work 
backward.

--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]> wrote:
>
> This is for Flex 2.0... are you compiling with Flex Builder 2 or the
> webtier compiler in FDS or perhaps even the command line using mxmlc? If
> you're not using the webtier compiler you need to specify the location
> of the flex-enterprise-services.xml file to the mxmlc compiler with the 
> --services option.
>  
> Also be careful with using tokens like {server.port} in the
> channel-definition as it requires the swf to be loaded from a browser.
> Try replacing all of the tokens in this file with hard coded defaults
> and work backwards. If you're using the {context.root} token and using
> mxmlc you may also have to provide this on the command line at compile
> time.
> 
> Also consider the security sandbox. You may need a crossdomain.xml file
> at the webroot of the j2ee server hosting your message broker servlet,
> and note by default that needs to reside at the real webroot without a
> context root so you may need a web-app deployed with the default context
> root "" to place a file here. (There are ways around this, but it's
> simpler to do this).
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of jeffrey_lage
> Sent: Friday, March 24, 2006 5:49 PM
> To: [email protected]
> Subject: [flexcoders] Unable to connect to RemoteObject
> 
>  am trying to make a call to a method on a remote object and get the
> following error:
> Error: faultCode:InvokeFailed faultString:'Error: Unknown destination
> 'reconResultAssembler'.' faultDetail:'Couldn't establish a connection to
> 'reconResultAssembler''
> at
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo
> ke()
> at mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/
> internal::invoke()
> at mx.rpc.remoting::Operation/send()
> at mx.rpc.remoting.mxml::Operation/send()
> at rotest/__ok_click()
> 
> here is the mx:RemoteObject tag in my .mxml file: 
> <mx:RemoteObject destination="reconResultAssembler" id="reconRO" 
> showBusyCursor="true" result="this.handleResult(event)">
> <mx:method name="getTree" />
> </mx:RemoteObject>
> 
> here is my flex-remoting-service.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <service id="remoting-service"
> class="flex.messaging.services.RemotingService" 
> messageTypes="flex.messaging.messages.RemotingMessage">
> <destination id="reconResultAssembler">
> <adapter ref="java-object"/>
> <properties>
> <source>com.dummy.recon.ReconResultAssembler</source>
> </properties>
> </destination>
> 
> <adapters>
> <adapter-definition id="java-object" 
> class="flex.messaging.services.remoting.adapters.JavaAdapter"
> default="true"/> </adapters>
> 
> <default-channels>
> <channel ref="my-amf"/>
> </default-channels>
> </service>
> 
> and here is my flex-enterprise-services.xml file:
> <?xml version="1.0" encoding="UTF-8"?>
> <services-config
> xmlns="http://www.macromedia.com/2005/flex-service-config";>
> <services>
> <service-include file-path="flex-data-service.xml"/>
> <service-include file-path="flex-remoting-service.xml"/>
> </services>
> 
> <channels>
> <channel-definition id="my-amf"
> class="mx.messaging.channels.AMFChannel">
> <endpoint
> uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf
> " 
> class="flex.messaging.endpoints.AMFEndpoint"/>
> <properties>
> <polling-enabled>true</polling-enabled>
> </properties>
> </channel-definition>
> </channels>
> </services-config>
> 
> does anyone see anything wrong? the remote call that is in the samples
> app works just fine. 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to