RobotLeg Service injection

gauravk.kumar's Avatar


05 Sep, 2012 10:30 AM

Hi All,

I am a very new in the field of RobotLegs, I have used Caringorm 2 for last 2 year.Robotlegs features are very promising. However I have a question (may be dumb?) . I am going to use Java remote object in my service let say HelloWorldService I have exteded this from Actor, all fine , create a instance of RemoteObject lets say myRO = new RemoteObject() (ring the bell why i am not use injecting it) and set its endpoint like "http://localhost:8080/HelloWorld/message-broker/amf" .

Now my two question:
1) Is I can inject my remote object as like in SpringActionScript

2) If not how can set my end point without hard coding it.


  1. Support Staff 1 Posted by Ondina D.F. on 05 Sep, 2012 11:02 AM

    Ondina D.F.'s Avatar

    Hi Gaurav,

    Please take a look at Joel’s UnionPlatformChatClient example to see how he’s using a RemoteObjectFactory:




    Let us know whether it was helpful or not.


  2. 2 Posted by gauravk.kumar on 05 Sep, 2012 11:26 AM

    gauravk.kumar's Avatar

    Dear Ondina

    Thanks for your replay, on first sight , its look fine, I will play with it tonight and let you know


  3. 3 Posted by gauravk.kumar on 06 Sep, 2012 04:42 AM

    gauravk.kumar's Avatar

    Hi ,

    I have played with the code of above and its done great job. However I am developing an AIR applictation , thus i picking my server ip and port from a config file that loaded when application preinitializes.

    Thus I am going to modify the RemoteObject factory to accept server ip and port and reduce some hard coding of the endpoint.

    Happpy RobotLeg programming


    By the way I am going to close this discussion as it solve my purpose

  4. gauravk.kumar closed this discussion on 06 Sep, 2012 04:42 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac