Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:59:24+00:00 2026-05-25T00:59:24+00:00

I want to recive RemoteObject from my service. Everything works fine but my code

  • 0

I want to recive RemoteObject from my service. Everything works fine but my code looks like this:

<mx:AMFChannel id="myamf"  uri="messagebroker/amf"/> 
<mx:ChannelSet id="channelSet" channels="{[myamf]}"/>
<mx:RemoteObject id="ro" channelSet="{channelSet}" destination="pServ" result="resultHandler(event);" fault="faultHandler(event);"/> 

is there a way to avoid hard typing channel uri in my .mxml file?

i tried with default channels in blazeds xml but without succes.

thats are parts of my configuration:

spring appContext.xml

<context:component-scan base-package="org.flex.test.services"/>
<flex:message-broker>
    <flex:remoting-service default-channels="my-amf"/>
</flex:message-broker>

<flex:remoting-destination ref="personService" destination-id="pServ"/> 

flex services-config.xml

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

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

<channels >
    <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"/>
    </channel-definition>
</channels>

Im running flex app from root of aplication file – main.html.

Thank you for answers!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:59:25+00:00Added an answer on May 25, 2026 at 12:59 am

    The default channel will work, but you need to add a reference to the services.xml as a compiler argument so that the compiler knows what the default is. Something like this should do the trick…

    -services {Your base directory}\src\main\webapp\WEB-INF\flex\services-config.xml
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my controller I want to receive some params like params[:test][:test_page] This code is
I want to send and receive commands like dir and so on but i
i have 2 class: hObject, Drawer. Drawer inherit from hObject. with this code i
I want to receive multi file post from image uploader.( i use this )
I want to recive the Parameter from the JSP to the Skelton class of
I have this RootViewController creation method, i want receive int value but i don't
I just want to transfer (send or receive) a hash from client to server.
I want to block few mobile numbers from my application. I mean can receive
I want to receive SENS events when the screensaver goes on/off. My code is
I want to receive a data which is passed using intent from another page.Can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.