Hi Stephen,

I don't think there are any problems with my services-config.xml and
remoting-config.xml files - they were working fine when I was
compiling using mxmlc Ant task using the services property to point at
the services-config.xml, and I haven't made any changes since...

Here are the files:

services-config.xml:

...

<channel-definition id="my-amf"
    class="mx.messaging.channels.AMFChannel">
  <endpoint
url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf";
class="flex.messaging.endpoints.AMFEndpoint"/>
  <properties>
    <polling-enabled>false</polling-enabled>
  </properties>
</channel-definition>

...


remoting-config.xml:

<?xml version="1.0" encoding="UTF-8"?>
<service id="remoting-service"
    class="flex.messaging.services.RemotingService"
    messageTypes="flex.messaging.messages.RemotingMessage">

  <adapters>
    <adapter-definition id="java-object"
        class="flex.messaging.services.remoting.adapters.JavaAdapter"
        default="true"/>
  </adapters>

  <default-channels>
    <channel ref="my-amf"/>
  </default-channels>

  <destination id="MyService">
    <properties>
      <source>myService</source>
      <factory>spring</factory>
    </properties>
  </destination>

  ...

</service>


Do these look ok to you?

Cheers,

Lawrie



--- In [email protected], Stephen Allison <[EMAIL PROTECTED]>
wrote:
>
> > Now when I run the app I get a "Destination 'MyService' has no
> > channels defined and the application does not define any default
> > channels."
> 
> That sounds like a server configuration problem.
> 
> My guess is that you have a 'destination' set up in your remoting- 
> config.xml that isn't specifying a channel., and that there is no  
> default channel element in your remoting-config file.  The usual set  
> up is something like:
> 
> <service id="remoting-service" ... >
>     <default-channels>
>         <channel ref="my-amf" />
>    </default-channels>
>    <destination id="my-destination">
>       ....
>    </destination>
> </service>
> 
> 
> You can also specify channels on a per-destination basis.  You need  
> to make sure that whatever is in the "ref" attribute of the channel  
> tags corresponds to one of the channel-definition's  set up in your  
> services-config.xml file, so in the above, you must have a channel  
> with id="my-amf" present.
> 
> Hope this is of some use.
> 
> Stephen
>


Reply via email to