Hi,
I've got the same problem. How did you change the endpoint of
the remote object. I don want to hardcode the ChannelSet and
AMFChannel. I have tried to change the amf channels endpoint in
services-config.xml in different ways but the client does not seem
to pick that up. (Data-management-services make no problems.)
I use Eclipse WTP + Tomcat 5. The FDS webapp is deployed on
http://localhost:8080/shopweb. The flex-app is compiled locally with FlexBuilder. I have the
following 'standard' configuration:
---------------------------------------------
## file [services-config.xml]:
<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>false</polling-enabled>
</properties>
</channel-definition>
-------------------------------
## file: [remoting-config.xml]
<default-channels>
<channel ref="my-amf"/>
</default-channels>
<destination id="org.shop.services.ImageService">
<adapter ref="java-object"/>
<properties>
<source>org.shop.services.ImageService</source>
<scope>application</scope>
</properties>
</destination>
------------------------------
## AS class ImageService
var imagesRO:RemoteObject = new
RemoteObject("org.shop.services.ImageService");
imagesRO.getTagNames.addEventListener(ResultEvent.RESULT,onGetTagNames);
imagesRO.addEventListener(FaultEvent.FAULT,onFault);
------------------------------
Now when I call the imagesRO.getTagNames I get a
Net.Connect.Call.Failed error. The flex-log is:
'my-amf' channel endpoint set to
http://localhost:8080/messagebroker/amf'my-amf' channel settings are:
<channel id="my-amf"
type="mx.messaging.channels.AMFChannel">
<endpoint uri="
http://{server.name}:{server.port}/messagebroker/amf"/> <properties>
<polling-enabled>false</polling-enabled>
</properties>
</channel>
'61E9894D-9D3F-5DEE-8B27-5BB350AAB574' producer sending
message '6B48B2EA-410C-41C9-837B-5BB350C9B67F'
'my-amf' pinging endpoint.
'my-amf' channel got status. (Object)#0
code = "NetConnection.Call.Failed"
description = "HTTP: Failed"
details = "
http://localhost:8080/messagebroker/amf" level = "error"
'my-amf' channel polling stopped.
'my-amf' channel connect failed.
'61E9894D-9D3F-5DEE-8B27-5BB350AAB574' producer channel
faulted with Channel.Connect.Failed NetConnection.Call.Failed:
HTTP: Failed
'61E9894D-9D3F-5DEE-8B27-5BB350AAB574' producer fault for
'DE194498-4C38-3129-7C63-5BB350B98623'.
'61E9894D-9D3F-5DEE-8B27-5BB350AAB574' producer fault for
'6B48B2EA-410C-41C9-837B-5BB350C9B67F'.
'my-amf' pinging endpoint.
'my-amf' channel got status. (Object)#0
code = "NetConnection.Call.Failed"
description = "HTTP: Failed"
details = "
http://localhost:8080/messagebroker/amf" level = "error"
'my-amf' channel polling stopped.
'my-amf' channel connect failed.
'61E9894D-9D3F-5DEE-8B27-5BB350AAB574' producer channel
faulted with Channel.Connect.Failed NetConnection.Call.Failed:
HTTP: Failed
----------------------------------
As said I have changed the endpoint definition by hardconding
the host,port and context but this does not work.
Thanks for the help,
Christian